tower-cli installation in AWX

Dear All,

I’ve installed AWX on K8s and I can see a Pod called awx-0 with 4 containers in it:

  • awx_web
  • awx_task
  • awx_rabbitmq
  • memcached

on which one should I install Tower-Cli? do you have a link for a step by step on how to install it?

Thank you and best regards

MoSa

Hi MoSa,

Have tried this on RHEL and the steps are as follows-

Here are the steps to configure tower-cli on redhat(AWX via docker)

  1. Set host information in /etc/hosts file

[root@awxuser etc]# cat /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

172.30.64.201 awxuser.example.com awxuser (IP of awx server)

  1. Install tower-cli:

pip install tower-cli

  1. Make below changes into ~/.tower_cli.cfg foe the following fields

username

password

host

verify_ssl

[Example:

username: admin

password: password

host: http://awxuser.example.com

verify_ssl: False]

  1. Command to show the details of all user

#tower-cli user list (Show the details of all user)

Reference Link:

https://docs.ansible.com/ansible-tower/latest/html/towerapi/tower_cli.html

Please let us know if the same works in your kubernets environment.

Regards

Tower cli is a local tool… install it and point it at your server. awx_web is what runs the web services.

Dear RC,

many thanks!!!

This is exactly what I was looking for!

I’ll test and let you know the outcome

Mo

HI RC;

worked perfectly!! :slight_smile:

Mo