# hi this is a chestnut that it  seems is not solved  tower-cli under AWX

**URL:** <https://forum.ansible.com/t/hi-this-is-a-chestnut-that-it-seems-is-not-solved-tower-cli-under-awx/31019>\
**Category:** AWX Project\
**Tags:** rhel, aws, awx\
**Created:** [August 12, 2019, 9:10am UTC](https://forum.ansible.com/t/hi-this-is-a-chestnut-that-it-seems-is-not-solved-tower-cli-under-awx/31019 "2019-08-12T09:10:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![barry\_kelliher1](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@barry\_kelliher1](https://forum.ansible.com/u/barry_kelliher1)\
**Post date:** [August 12, 2019, 9:10am UTC](https://forum.ansible.com/t/hi-this-is-a-chestnut-that-it-seems-is-not-solved-tower-cli-under-awx/31019/1 "2019-08-12T09:10:42Z")

</div>

AWX on AWS rhel 7.4 trying to run towercli from playbook/template in amx (docker-compose install) but cannot figure out what host i need need to specify in tower-cli config hosts . tried several things but none work . so how do i use a awx template job to run tower cli to update the same awx instance ,  
tried various types of local host and even the external dns without success

any clues ? what does one put in the host field ?

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 12, 2019, 9:21am UTC](https://forum.ansible.com/t/hi-this-is-a-chestnut-that-it-seems-is-not-solved-tower-cli-under-awx/31019/2 "2019-08-12T09:21:46Z")

</div>

Hi Barry,

I have targeted the host that the awx container sits on. The way I did was to add the host to the inventory in awx. I used ansible\_host:x.x.x.x to create an ip address to the host name. I was able to run tower-cli commands to the tower. Hope it helps.

– You received this message because you are subscribed to the Google Groups “AWX Project” group. To unsubscribe from this group and stop receiving emails from it, send an email to . To view this discussion on the web visit .

---

<div class="post-metadata">

**Author:** ![barry\_kelliher1](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@barry\_kelliher1](https://forum.ansible.com/u/barry_kelliher1)\
**Post date:** [August 12, 2019, 9:32am UTC](https://forum.ansible.com/t/hi-this-is-a-chestnut-that-it-seems-is-not-solved-tower-cli-under-awx/31019/3 "2019-08-12T09:32:19Z")

</div>

interesting so your were able to define an ansible host for the AWX docker host that AWX sits on then assign an ip (but which ip ? (the actual ip of the host ? , ip relative to the container ? ) any examples ?

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [August 12, 2019, 9:43am UTC](https://forum.ansible.com/t/hi-this-is-a-chestnut-that-it-seems-is-not-solved-tower-cli-under-awx/31019/4 "2019-08-12T09:43:29Z")

</div>

![Image](https://us1.discourse-cdn.com/ansible/original/2X/9/9a0408e5bcdc563a61195623440b310dfcac9cac.jpeg)

The host Ip address.

Basically the ansible host is just another host in the inventory with the variables. Above is an example.  
I was able to run tower cli command against that. Not quite sure if you can see.

– You received this message because you are subscribed to the Google Groups “AWX Project” group. To unsubscribe from this group and stop receiving emails from it, send an email to . To view this discussion on the web visit .

---

<div class="post-metadata">

**Author:** ![barry\_kelliher1](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@barry\_kelliher1](https://forum.ansible.com/u/barry_kelliher1)\
**Post date:** [August 12, 2019, 7:46pm UTC](https://forum.ansible.com/t/hi-this-is-a-chestnut-that-it-seems-is-not-solved-tower-cli-under-awx/31019/5 "2019-08-12T19:46:58Z")

</div>

Ok sorted the missing info from this thread turned out to be ... connect to the docker host server hosting AWx via its private ip .. from there connect towercli locally . Thanks all for the hint
