install ansible on rhel 7 redhat

How To Install Ansible On RHEL 7/Redhat

to install ansible on rhel 7/Redhat Linux you need to follow two steps

  • install epel repo
  • install ansible

we can install Ansible by enabling the epel repository under RHEL 7/redhat

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
  • ansible installation on rhel 7
  • How To Install Ansible in Redhat Linux
  • ansible rpm download redhat
  • How To Install Ansible in Redhat 6
  • ansible install rhel
  • How To Install Ansible in Redhat 7
  • ansible rpm for rhel 7
  • download rpm ansible for red hat