Is it possible to associate a host to a variable?

20 views
Skip to first unread message

Edson D'Agostini

unread,
Feb 16, 2018, 12:19:41 AM2/16/18
to Ansible Project
Greetings,

Would you please let me know if there is a way of associating a host with a variable. In other words,

I have in one test inventory file something like his:

nodenameA nodeNumber=1
nodenameB nodeNumber=2
nodenameC nodeNumber=3

This works well when running from the CLI, but as now it is being implemented Ansible Tower, I did not find any reference on guides and forums about this association.

Any thought are welcome to help me find a way out of this association or a way to implement it into Tower.
Regards,
Ed

Varun Chopra

unread,
Feb 19, 2018, 2:39:46 AM2/19/18
to Ansible Project
You can declare variables for individual hosts in tower as well.
Reply all
Reply to author
Forward
0 new messages