How To 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

yum  install  https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y

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

yum update -y

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.

yum repolist

Installing Ansible in Rhel 7

after enabling epel repo you can install Ansible using following command

yum install ansible -y

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

ansible --version

 

If you have RHEL 7 subscription model

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

Authenticate your subscription

subscription-manager register --username your_username --password your_password

enable Extra Packages for Enterprise Linux

yum   install   https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

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

subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"

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

yum update

installing ansible

install ansible with the following command

yum install ansible

check ansible version with the following command

ansible --version

 

  • 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

1 Response

  1. Aamer Saeed says:

    A very informative article

Leave a Reply

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