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

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

(: 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:

.td_uid_2_5d90872ecb406_rand.td-a-rec-img{text-align:left}.td_uid_2_5d90872ecb406_rand.td-a-rec-img 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 https://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz

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
...........................
[tower]
localhost ansible_connection=local

[database]

[all:vars]
admin_password='AdminPassword'

pg_host=''
pg_port=''

pg_database='awx'
pg_username='awx'
pg_password='PgStrongPassword'

rabbitmq_username=tower
rabbitmq_password='RabbitmqPassword'
rabbitmq_cookie=cookiemonster

# 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 ./setup.sh

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

.td_uid_4_5d90872ecb610_rand.td-a-rec-img{text-align:left}.td_uid_4_5d90872ecb610_rand.td-a-rec-img img{margin:0 auto 0 0}

Related posts

How to Download online web pages as PDF with Percollate

SXI ADMIN

Chain Reveals ‘Ivy’ Smart Contract Language in First Public Demo

SXI ADMIN

Russia’s Ministry of Health Is Launching a Blockchain Pilot

SXI ADMIN

Tech Firm Inks Deal to Build on R3’s Distributed Ledger Tech

SXI ADMIN

Korea’s Central Bank Forms Task Force to Study Cryptocurrency Impact

SXI ADMIN

Dutch Bank’s Innovation Chief Dismisses Bitcoin

SXI ADMIN

How to find Intel NUC BIOS version and model on Linux

SXI ADMIN

SEC Postpones Decision on Bitwise, VanEck Bitcoin ETF Proposals

SXI ADMIN

Linux Hotplug a CPU and Disable CPU Cores At Run Time

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More