Australia | How to change the hostname of the Ansible Tower Cluster

Sebastian Baszcyj - 28.04.202020200428

How to change the hostname of the Ansible Tower Cluster

Australia | How to change the hostname of the Ansible Tower Cluster

Not so long ago, I was asked to support a customer with their migration of the Red Hat Enterprise Linux systems from one domain to another. The request included changing the fully qualified domain name (FQDN) for each of the servers. It happened that this customer also had a few Ansible Tower Clusters. The Ansible Tower Cluster uses a few elements for the communication between the application nodes and for the communication with the postgresql database.

The following article provides a very short procedure on how to change the FQDN for the Ansible Tower Cluster nodes once the server has been migrated to a new domain.

Note: This procedure needs to be executed on each node of the cluster, excluding the postgresql database.

1. Log into the Ansible Tower using ssh with root privileges

2. Change directory to /etc/tower/conf.d

3. Edit file channels.py

4. Update the FQDN in the channels.py to reflect the new name of the server, for example from:

Australia | How to change the hostname of the Ansible Tower Cluster

to:

Australia | How to change the hostname of the Ansible Tower Cluster

5. Update the FQDN in the rabbitmq.py to reflect the new name of the server, for example from:

Australia | How to change the hostname of the Ansible Tower Cluster

to:

Australia | How to change the hostname of the Ansible Tower Cluster

6. Update the FQDNFFqdn in the postgres.py to reflect the new name of the server, for example from:

Australia | How to change the hostname of the Ansible Tower Cluster

to:

Australia | How to change the hostname of the Ansible Tower Cluster

7. Restart the Ansible Tower services and ensure all the services are ‘Active’

Australia | How to change the hostname of the Ansible Tower Cluster

8. Navigate to Ansible Tower URL and ensure you can log in to the Ansible Tower UI.

9. Repeat the process on each cluster node

I hope this short procedure will be helpful!

Watch this space if you are interested in more Red Hat related ideas.

THANK YOU FOR YOUR SUBMISSION!

Australia | How to change the hostname of the Ansible Tower Cluster

The form was submitted successfully.

Join the Insentra Community with the Insentragram Newsletter

Hungry for more?

If you’re waiting for a sign, this is it.

We’re a certified amazing place to work, with an incredible team and fascinating projects – and we’re ready for you to join us! Go through our simple application process. Once you’re done, we will be in touch shortly!

Who is Insentra?

Imagine a business which exists to help IT Partners & Vendors grow and thrive.

Insentra is a 100% channel business. This means we provide a range of Advisory, Professional and Managed IT services exclusively for and through our Partners.

Our #PartnerObsessed business model achieves powerful results for our Partners and their Clients with our crew’s deep expertise and specialised knowledge.

We love what we do and are driven by a relentless determination to deliver exceptional service excellence.

Australia | How to change the hostname of the Ansible Tower Cluster

Insentra ISO 27001:2013 Certification

SYDNEY, WEDNESDAY 20TH APRIL 2022 – We are proud to announce that Insentra has achieved the  ISO 27001 Certification.