How to install Ansible on RHEL or CentOS machine:
Step:1. Download rpm package of EPEL(Extra package for enterprise Linux) for RHEL6.x/CentOS6.x using below link
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
We can use wget before above link to download package using command line. In case above link is not available then download EPEL repo from http://tinyurl.com/epelforlinux
Step:2. When EPEL rpm is downloaded then use rpm command to install it.
rpm -ivh epel-release-6-8.noarch.rpm
Step:-3 When EPEL package is installed then it will create repo files under /etc/yum.repos.d . Now we just need to use yum command to install ansible package.
yum install ansible-2* -y
To validate ansible package installation :
rpm -qa | grep -i ansible
Step:1. Download rpm package of EPEL(Extra package for enterprise Linux) for RHEL6.x/CentOS6.x using below link
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
We can use wget before above link to download package using command line. In case above link is not available then download EPEL repo from http://tinyurl.com/epelforlinux
Step:2. When EPEL rpm is downloaded then use rpm command to install it.
rpm -ivh epel-release-6-8.noarch.rpm
Step:-3 When EPEL package is installed then it will create repo files under /etc/yum.repos.d . Now we just need to use yum command to install ansible package.
yum install ansible-2* -y
To validate ansible package installation :
rpm -qa | grep -i ansible