Install Ansible Tower Step by Step Guide RHEL 7

Ansible is a tower that’s put you in control. Tower provides to powerful way to deploy your applications in your entire IT Infrastructure, with stream lined interface and integrated alerts. Enhanced permissions help you to scale. Rolling out an application updates, patches made simple. Role based access control and scheduling jobs for auto execution. REST API is the one you can integrate your Ansible automation tool with any other tool which supports REST API. Install Ansible Tower Step by Step Guide RHEL 7/Centos 7.

Control Users and Teams by assigning role based access control. You can restrict users to execute particular Ansible playbook and each & every task/play will be logged for auditing.

Install Ansible Tower Centos 7

Tower can be installed in three modes

  1.  Single Node Installation
  2. One Node with Remote Database Installation
  3. Cluster/High Availability, Multiple Machines with a remote database

In this article i am going to show you how to install Ansible Tower in Single Node Infrastructure

First Step is to download ansible tower trail version from website Download Link

You can also download directly from Linux command using below command

[root@ansible-tower ~]# wget http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz

extract downloaded file using tar command

[root@ansible-tower ~]# tar -xvf ansible-tower-setup-latest.tar.gz

Required Manual Download of RPM’s for RHEL 7

Red Hat Enterprise Linux 7 will not default RPM’s support without subscription you have to install RPM’s manually

yum install python-dev python-pip gcc gcc+ python2-crypto python2-paramiko python-htt*
wget https://www.rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/python-jinja2-2.7.2-2.el7.noarch.rpm
wget https://www.rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/python-babel-0.9.6-8.el7.noarch.rpm
https://www.rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/python-markupsafe-0.11-10.el7.x86_64.rpm
wget https://www.rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/libyaml-0.1.4-11.el7_0.x86_64.rpm
rpm -ivh python-babel-0.9.6-8.el7.noarch.rpm
rpm -ivh python-markupsafe-0.11-10.el7.x86_64.rpm python-jinja2-2.7.2-2.el7.noarch.rpm libyaml-0.1.4-11.el7_0.x86_64.rpm
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python2-pyasn1-0.1.9-7.el7.noarch.rpm
rpm -ivh python2-pyasn1-0.1.9-7.el7.noarch.rpm
yum install ansible

Note:  openssl-libs-1.0.2 RPM is mandatory for setup to complete. Otherwise you struck up in failing dependencies for ansible tower, It’s an dependent package for installing Nginx

Modify inventory file located in installation directory path (Highlighted are changes) Or else you will get this error “Please configure passwords in the inventory file before running setup

[root@AnsibleTower ansible-tower-setup-3.2.1]# cat inventory
[tower]
localhost ansible_connection=local

[database]

[all:vars]
admin_password='redhat'

pg_host=''
pg_port=''

pg_database='awx'
pg_username='awx'
pg_password='redhat'

rabbitmq_port=5672
rabbitmq_vhost=tower
rabbitmq_username=tower
rabbitmq_password='redhat'
rabbitmq_cookie=cookiemonster

# Needs to be true for fqdns and ip addresses
rabbitmq_use_long_name=false

Change your directory path to ansible-latest and execute setup.sh script

[root@ansible-tower ansible-lastest]# ./setup

completion of install ansible tower you may see below message

PLAY [Install Tower isolated node(s)] *********************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP ************************************************************************************************************************************************************
localhost : ok=132 changed=63 unreachable=0 failed=0

The setup process completed successfully.
Setup log saved to /var/log/tower/setup-2018-01-03-16:03:32.log
[root@AnsibleTower ansible-tower-setup-3.2.1]#

Ansible Tower Installation Log

How to Install Ansible Tower in RHEL 7

That’s from command line you have to do, go to browser and type ansible tower host IP address

ansible tower login Page

ansible tower login Page

provide user name and password as per the inventory file and click on sign in

Ansible tower License Page

click on browse and provide .pem license file check i agree End user license and click submit. Install Ansible tower completed successfully. Stay tune for more updates on ansible tower automation

Related Articles

HowTo Install OpenOffice

Jenkins Installation and Configuration Steps

First Configuration After Automation Tool Installation

Thanks for your wonderful Support and Encouragement