Ansible Installation Steps Red Hat Enterprise Linux 7 (RHEL 7)
Ansible is a simple IT automation engine that automates provisioning, configuration management, application deployment and many other IT needs. Designed for multi-tier deployments, ansible models your IT infrastructure by describing how all of your systems interrelate, rather than just managing one system at a time. In this Article we are going to learn Ansible Installation Steps Red Hat Enterprise Linux 7 – RHEL 7.
It uses no agents and no additional custom security infrastructure, so it’s easy to deploy – and most importantly, it uses a very simple language YAML that allow you to describe your automation jobs in a way that approaches plain English.
Ansible works by connecting to your nodes and pushing out small programs, called “Ansible modules” to them. These programs are written to be resource models of the desired state of the system. Ansible then executes these modules using SSH Protocol, and removes them when finished.
Your library of modules can reside on any machine, and there are no servers, daemons, or databases required. Typically you will work with your favorite terminal program, a text editor, and probably a version control system to keep track of changes to your content.
Ansible Installation RHEL 7
To Install Ansible, we have to configure EPEL Repository then install using this extra repository
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm # rpm -ivh epel-release-7-10.noarch.rpm
If your directly trying to install using yum command it will end up with below error
Required: python-jinja2 Requires: PyYAML Require: python-pyasn1
Why above error is occurring i already configured EPEL repository it contains most of the required RPM’s (typically Python). But recently Red Hat is moved python-jinja2 and PyYAML packages are part of Optional Server repository. To install these you have to subscribe to RHEL. Alternative is download them manually and install.
# yum install python-dev python-pip # yum install gcc gcc+
Install above packages and verify pip version, Pip version must be 9 or above, if not try upgrade as shown below
[root@ArkIT-Serv ~]# pip --version pip8.1.2 from /usr/lib/python2.7/site-packages (python 2.7) # pip install --upgrade pip
Dependencies needs to be resolved manually
# yum install python2-crypto python2-paramiko python-htt* # wget ftp://184.108.40.206/linux/centos/7.3.1611/os/x86_64/Packages/python-jinja2-2.7.2-2.el7.noarch.rpm # wget ftp://220.127.116.11/linux/centos/7.3.1611/os/x86_64/Packages/python-babel-0.9.6-8.el7.noarch.rpm # rpm -ivh python-babel-0.9.6-8.el7.noarch.rpm # wget ftp://18.104.22.168/linux/centos/7.3.1611/os/x86_64/Packages/python-markupsafe-0.11-10.el7.x86_64.rpm # rpm -ivh python-markupsafe-0.11-10.el7.x86_64.rpm # rpm -ivh python-jinja2-2.7.2-2.el7.noarch.rpm # wget ftp://22.214.171.124/linux/centos/7.3.1611/os/x86_64/Packages/libyaml-0.1.4-11.el7_0.i686.rpm # rpm -ivh libyaml-0.1.4-11.el7_0.i686.rpm --nodeps
Now Try Ansible installation using pip command
# yum install ansible
Check ansible installed Version
[root@ArkIT-Serv ~]# ansible --version ansible 126.96.36.199 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
That’s it. Ansible Installation Steps RHEL 7 Completed and Installation is successful.
Thanks for your wonderful Support and Encouragement
- Do Not Miss Interesting and Important Articles: Signin Now
- Download free PDF Books : Download Anything and Everything for Free
- Stay Connected with Us: Facebook Page | Twitt | Google Plus | LinkedIn | RSS feeds
- High Qualitfy Video Tutorials : All Videos
- Still You Have Question? : Ask Us
Click on above colored text to access appropriate page