Install Ansible On Redhat Linux 7 System Offline
Deployments September 23, 2021
Hello and welcome to this guide.
Recently i got to configure Ansible on a Linux server running RedHat Enterprise Linux 7 and its completely disabled from the internet.
I will assume you already know what Ansible is and that you are just trying to figure out, how to configure it on a completely disconnected linux machine.
Of course there are dependencies necessary to install Ansible and below are them.
cd into the folder with the dependencies and....
yum localinstall -y python-crypto-2.6.1-1.el7.rf.x86_64.rpm
yum localinstall -y python-httplib2-0.9.2-0.2.el7.noarch.rpm
yum localinstall -y python-keyczar-0.71c-2.el7.noarch.rpm
yum localinstall -y python2-jmespath-0.9.4-2.el7.noarch.rpm
yum localinstall -y python-babel-0.9.5-1.el5.rf.noarch.rpm
It's time to explain the ansible file/folder hierarchy. You will notice that if you list files or folders in /etc/ansible, you will see the following. In addition, I have provided a description of each file or folder.
A rich documentation availability and regular updates of Ansible on it's website makes it a very strong competitor of Puppet and Chef like automation tools. Please write us in the comment section if you have any queries or question regarding this post.
Information and Cyber Security Professional. All thoughts and opinions expressed here are my own, and may not be representative of my employer, or any other entity unless I am specifically quoting someone.