Technology Blog

Install Ansible on CentOS 7

Add the EPEL Repository

Ansible is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository:

sudo rpm -iUvh

Step #2: The Installation

As a matter of best practice we’ll update our packages:

sudo yum -y update

Then let’s install Ansible and any required packages:

sudo yum -y install ansible

Step #3: Verify The Installation

Check the version of Ansible that is installed:

ansible --version

Which should yield something similar to:

ansible 1.8.4
configured module search path = None