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 ?
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 .
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 ?
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 .
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