# tower-cli installation in AWX

**URL:** <https://forum.ansible.com/t/tower-cli-installation-in-awx/30159>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [April 22, 2019, 2:49am UTC](https://forum.ansible.com/t/tower-cli-installation-in-awx/30159 "2019-04-22T02:49:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Ghaleb](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@M\_Ghaleb](https://forum.ansible.com/u/M_Ghaleb)\
**Post date:** [April 22, 2019, 2:49am UTC](https://forum.ansible.com/t/tower-cli-installation-in-awx/30159/1 "2019-04-22T02:49:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RC1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@RC1](https://forum.ansible.com/u/RC1)\
**Post date:** [April 22, 2019, 5:33am UTC](https://forum.ansible.com/t/tower-cli-installation-in-awx/30159/2 "2019-04-22T05:33:50Z")

</div>

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](http://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](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](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

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [April 22, 2019, 12:54pm UTC](https://forum.ansible.com/t/tower-cli-installation-in-awx/30159/3 "2019-04-22T12:54:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![M\_Ghaleb](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@M\_Ghaleb](https://forum.ansible.com/u/M_Ghaleb)\
**Post date:** [April 24, 2019, 3:55am UTC](https://forum.ansible.com/t/tower-cli-installation-in-awx/30159/4 "2019-04-24T03:55:25Z")

</div>

Dear RC,

many thanks!!!

This is exactly what I was looking for!

I’ll test and let you know the outcome

Mo

---

<div class="post-metadata">

**Author:** ![M\_Ghaleb](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@M\_Ghaleb](https://forum.ansible.com/u/M_Ghaleb)\
**Post date:** [April 25, 2019, 6:23pm UTC](https://forum.ansible.com/t/tower-cli-installation-in-awx/30159/5 "2019-04-25T18:23:12Z")

</div>

HI RC;

worked perfectly!! 🙂

Mo
