Ansible is a useful configuration automation software that allows you to automate the setup of your machines. In comparison to other configuration automation out there like Chef or Puppet, I’ve found it to be much simpler to use for cluster setup.
First, I normally update the EPEL on CentOS 7 before installing ansible.
yum install epel-release
Afterwards, we can use yum install to setup ansible on our machine. If you have a cluster, install ansible on each individual node. Yum will install all dependencies that is required of ansible.
yum install ansible
To check if you have installed ansible correctly:
ansible 1.9.4 configured module search path = None