- These instructions are intended specifically for installing Ansible, an automation tool.
- I’ll be working from a Liquid Web Core Managed CentOS 7 server, and I’ll be logged in as non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on CentOS 7.
Step #1: Add the EPEL RepositoryAnsible 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 http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Step #2: The InstallationAs a matter of best practice we’ll update our packages:
sudo yum -y updateThen let’s install Ansible and any required packages:
sudo yum -y install ansible
Step #3: Verify The InstallationCheck the version of Ansible that is installed:
ansible --versionWhich should yield something similar to: ansible 1.8.4 configured module search path = None