Disclaimer:-Every thing provided on this website is only for Educational purposes and free. Author is not responsible,If the given information is used for any illegal or UnEthical Purposes. This website does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.

How to install Ansible

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

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