How To Install Ansible On Centos 7 and RHEL 7

0 Comment

How To Install Ansible On Centos 7 and RHEL 7

to install ansible in Redhat Linux/Rhel or to install ansible on centos 7 you need to follow two steps

  • install epel repo
  • install ansible

we can install Ansible by enabling the epel repository under RHEL/CentOS 6, 7

Install Epel Repo

Ansible package is not available in the default yum repositories, so we have to enable EPEL repository or install EPEL

to install Extra Packages for Enterprise Linux (EPEL)  we use below command

This will download all the necessary packages which will be required to install Ansible

Update Your Packages

after installing epel repo, update your packages with below command

Verifying Epel Repo

You need to run the following command to verify that the EPEL repository is enabled. Once you run the command you will see the epel repository.

Installing Ansible in Rhel 7

after enabling epel repo you can install Ansible using following command

After installed successfully, you can verify the version by executing below command.

 

If you have RHEL 7 subscription model

if you have rhel 7 subscription use below commands to install ansible.

Authenticate your subscription

enable Extra Packages for Enterprise Linux

enable optional rpms for rhel7

on RHEL 7 it is recommended to also enable the optional and extras repositories since EPEL packages may depend on packages from these repositories

 

After installing EPEL, you need to update your package list.

installing ansible

install ansible with the following command

 

check ansible version with the following command

 

  • ansible repository
  • install ansible on rhel 7
  • download ansible rpm for rhel 7
  • ansible rpm package download
  • install ansible on centos 6
  • ansible installation on rhel 7
  • install ansible on centos 7 VM
  • ansible installation on centos 7 VM
  • How To Install Ansible in Redhat Linux
  • ansible rpm download redhat
  • How To Install Ansible in Redhat 6
  • ansible install centos
  • ansible install rhel
  • install ansible on centos 7
  • How To Install Ansible in Redhat 7
  • ansible rpm for rhel 7
  • ansible rpm download centos 7
  • download rpm ansible for red hat
[top]

Leave a Reply

Your email address will not be published. Required fields are marked *