Ansible Tower Installation on CentOS

Ansible tower is web based automation tool which is used to 
manage your infrastructure. It is based on Ansible's
capabilities and provide some more enhanced features for
managing the tasks. You can do whatever can be done by Ansible.
Below are the steps to install Ansible Tower on CentOS.

Let's update the OS first and then download ansible setup.
# yum update -y

# wget https://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz
Now untar it and run the script named "setup.sh" in it. But 
before that you need to make some changes in "inventory" file
as per your requirement. But you need to enter required
passwords which is mandatory.
# tar -zxvf ansible-tower-setup-latest.tar.gz

# cd ansible-tower-setup-3.8.6-2/

# ./setup.sh

----------
----------
----------
----------

PLAY [Install Automation Hub node] **********************************************************************************************************************
skipping: no hosts matched

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

PLAY RECAP **********************************************************************************************************************************************
localhost                  : ok=176  changed=84   unreachable=0    failed=0    skipped=92   rescued=0    ignored=3

The setup process completed successfully.
Setup log saved to /var/log/tower/setup-2023-09-19-19:49:31.log.
Now go and connect to Server IP. Login via credential you set 
in inventory file.
Now you are on the page where subscription comes in play. If 
you have Redhat subscription then you can just go and login.
Otherwise, you need to manually generate manifests for CentOS
and then upload to server will work.

You need to create manifests on “redhat.com” from below page.
You need to click on “Create New” and follow below images.
You need to click “Add Subscription” and add “Entitlements”. 
Go back to details and export manifests.
Now you can upload it and just click on Submit.
You have Ansible Tower Dashboard now.

Leave a Reply

Your email address will not be published. Required fields are marked *