ansible Installation on Red Hat based systems


Ansible can be installed on CentOS or other Red Hat based systems. Firstly you should install the prerequisites:

sudo yum -y update
sudo yum -y install gcc libffi-devel openssl-devel python-pip python-devel

then install Ansible with pip:

sudo pip install ansible

I can recommend for you to upgrade the setuptools after the installation:

sudo pip install --upgrade setuptools

You can also use the local Package Manager as well:

yum install ansible