How To

How To Install and Configure Ansible Tower on CentOS 7 / RHEL 7/8

(: September 21, 2019) How To Install Ansible Tower on RHEL 8/7 & CentOS 7/8?. In this article, we will cover the...

Written by SXI ADMIN · 1 min read >

(: September 21, 2019)

How To Install Ansible Tower on RHEL 8/7 & CentOS 7/8?. In this article, we will cover the installation, configuration, and usage of Ansible Tower on RHEL 7 / CentOS 7 server. Ansible has been dominating as the standard tool for automating Infrastructure and Applications deployments in enterprises. Ansible is a simple, powerful, and easy to learn as compared to other configuration management tools such as Chef & Puppet.

For Ubuntu / Debian: How To Install Ansible AWX on Ubuntu 18.04 / Debian 10

Ansible exists in two standards:{text-align:left} img{margin:0 auto 0 0}
  • Ansible Core – Provides Ansible runtime for executing playbooks.
  • Ansible Tower – Provides management, visibility, job scheduling, credentials, RBAC, auditing/compliance e.t.c.

By installing Ansible Tower, Ansible core will be installed as a dependency. Below are the steps you’ll use to install Ansible Tower on a CentOS 7 server.

Step 1: Update system and add EPEL repository

We need the EPEL repository for this installation. Update your CentOS 7 system and add EPEL repository.

sudo yum -y update
sudo yum -y install epel-release

Ansible Tower uses Ansible playbook to deploy itself so we also need Ansible installed.

sudo yum -y install ansible vim curl

Step 2: Download Ansible Tower archive

Download the latest Ansible Tower release.

mkdir /tmp/tower && cd  /tmp/tower
curl -k -O

Extract downloaded archive.

tar xvf ansible-tower-setup-latest.tar.gz

Step 3: Install Ansible Tower

Navigate to the created directory.

cd ansible-tower-setup*/

Edit inventory file to set required credentials.

$ vim inventory
localhost ansible_connection=local






# Isolated Tower nodes automatically generate an RSA key for authentication;
# To disable this behavior, set this value to false
# isolated_key_generation=true

When done, start installation of Ansible Tower on CentOS 7.

sudo ./

This will invoke Ansible playbook to install Ansible Tower on CentOS 7. If successful, the message like this should show at the end.

Step 4: Configure Ansible Tower

You can configure Ansible Tower using:

  • CLI
  • RESTful API
  • Web UI

We will use the Web UI since this is the most preferred method by most new Ansible Tower users. Open your favorite browser point to your Ansible Tower server IP or hostname via https protocol.

Login as admin user and password set in the inventory file.

Once you are logged in, you need to configure Ansible Tower license. Browse to the license file and accept the terms. If you don’t have a license, get trial one here.

Agree to the End User License Agreement and Submit to finish the installation. This is the end of the installation of Ansible Tower on CentOS 7, our next tutorials will cover using Ansible Tower to automate IT operations.

Also check:

Install Apache Tomcat On Ubuntu 18.04 / CentOS 7 With Ansible

Build AWS EC2 Machine Images (AMI) With Packer and Ansible

Semaphore – Manage Ansible Tasks from A Web UI

Install Ansible AWX on CentOS 7 / Fedora{text-align:left} img{margin:0 auto 0 0}

How to Install RabbitMQ on CentOS 7

  ·   1 min read