pick the inventory depends on my env variables ?

15 views
Skip to first unread message

Sampath Kumar

unread,
Mar 14, 2019, 4:49:25 AM3/14/19
to Ansible Project

Hi All

Can someone help me on  how to execute the AWX template/playbook Template in such a way that it has to pick the inventory depends on my env variables ?



Keif Gwinn

unread,
Mar 14, 2019, 7:55:17 AM3/14/19
to ansible...@googlegroups.com
You could have multiple ansible.cfg and access them via different env

Changes can be made and used in a configuration file which will be processed in the following order:

* ANSIBLE_CONFIG (an environment variable)
* ansible.cfg (in the current directory)
* .ansible.cfg (in the home directory)
* /etc/ansible/ansible.cfg


On Thu, 14 Mar 2019 at 08:49, Sampath Kumar <sampath...@gmail.com> wrote:

Hi All

Can someone help me on  how to execute the AWX template/playbook Template in such a way that it has to pick the inventory depends on my env variables ?



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d29a8ede-e8e4-4c5d-94af-6ab3efae32a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages