# pick the inventory depends on my env variables ?

**URL:** <https://forum.ansible.com/t/pick-the-inventory-depends-on-my-env-variables/29884>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [March 14, 2019, 8:49am UTC](https://forum.ansible.com/t/pick-the-inventory-depends-on-my-env-variables/29884 "2019-03-14T08:49:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sampath\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@Sampath\_Kumar](https://forum.ansible.com/u/Sampath_Kumar)\
**Post date:** [March 14, 2019, 8:49am UTC](https://forum.ansible.com/t/pick-the-inventory-depends-on-my-env-variables/29884/1 "2019-03-14T08:49:25Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Keif\_Gwinn](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@Keif\_Gwinn](https://forum.ansible.com/u/Keif_Gwinn)\
**Post date:** [March 14, 2019, 11:54am UTC](https://forum.ansible.com/t/pick-the-inventory-depends-on-my-env-variables/29884/2 "2019-03-14T11:54:50Z")

</div>

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:

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

```
