# Inventory source variables

**URL:** <https://forum.ansible.com/t/inventory-source-variables/26663>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 5, 2018, 1:28pm UTC](https://forum.ansible.com/t/inventory-source-variables/26663 "2018-02-05T13:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raf.nijskens.hgst](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@raf.nijskens.hgst](https://forum.ansible.com/u/raf.nijskens.hgst)\
**Post date:** [February 5, 2018, 1:28pm UTC](https://forum.ansible.com/t/inventory-source-variables/26663/1 "2018-02-05T13:28:38Z")

</div>

Hi All,

For an inventory with a project as source, you can enter an inventory file and environment variables.  
Within that inventory we have an ansible.cfg with the vault password.

Everything works as expected when I set an environment variable as follows:  
ANSIBLE\_CONFIG: /var/lib/awx/projects/\_X\_\_name\_of\_project/ansible.cfg

Is there a variable that I can use that points to the configured inventory file?  
Something like:  
ANSIBLE\_CONFIG: &inventory\_dir /ansible.cfg

Thank you,

Raf
