Install Ansible
Ansible is not in the default RHEL 7 repositories, but in this recipe, I will show you how to install it in several ways.
Getting ready
Ansible needs the following packages installed:
- Python v2.7 (Ansible doesn't support v3 yet)
python-httplib2
python-jinja2
python-paramiko
python-setuptools
PyYAML
So, in order to achieve this, execute the following command:
~]# yum install -y python-httplib2 python-jinja2 python-keyczar python-paramiko python-setuptools PyYAML
As RHEL 7 and some other major distributions come preinstalled with Python (yum requires it, as do most of the Red Hat tools), we don't have to include it in the preceding command.
How to do it…
In this recipe, I will cover the three most used methods of installing Ansible.
Installing the latest tarball
This method is quite simple as you just download the tarball and extract it in a location of your choosing. Perform the following steps:
- Grab the latest tarball located at http://releases.ansible.com/ansible/ via...