# Where to find Ansible related variables?

**URL:** <https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595>\
**Category:** Ansible Project\
**Created:** [March 27, 2013, 9:08pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595 "2013-03-27T21:08:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [March 27, 2013, 9:08pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595/1 "2013-03-27T21:08:48Z")

</div>

Hi all,

I would like to know where can I find all the related Ansible variables such as ansible\_python\_interpreter and ANSIBLE\_\* ?

Please excuse me for my ignorance and low google skills but I could not seem to locate a page that can tell me all the variables that Ansible understands and how to use them.

Thank,  
Steven.

---

<div class="post-metadata">

**Author:** ![Timothy\_Gerla](https://avatars.discourse-cdn.com/v4/letter/t/977dab/32.png) [@Timothy\_Gerla](https://forum.ansible.com/u/Timothy_Gerla)\
**Post date:** [March 27, 2013, 9:10pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595/2 "2013-03-27T21:10:27Z")

</div>

Hi Steven,

You can query for these variables by executing the "setup" module, like this:

ansible -m setup hostname

This should spit out all of the available variables.

We're working on a FAQ page that will have a lot of this stuff in place soon!

Thanks,

-Tim

---

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [March 27, 2013, 9:15pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595/3 "2013-03-27T21:15:07Z")

</div>

Hi Timothy,

That solves the issue for finding ansible\_\* variables. Would you point me to where I can find ANSIBLE\_\* variables?

Thank you,  
Steven.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [March 27, 2013, 9:38pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595/4 "2013-03-27T21:38:12Z")

</div>

environment variables are mostly out of favor (but not deprecated)  
since they can all be set in the config file now. You can see them  
all in constants.py.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [March 27, 2013, 10:00pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595/5 "2013-03-27T22:00:07Z")

</div>

In some cases, like ansible\_\*\_interpreter, you cannot find a list  
because it is set to match arbitrary inputs, in this case you can  
create ansible\_bash\_interpreter or  
ansible\_myowncustomlanguage\_interpreter.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [March 27, 2013, 10:10pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595/6 "2013-03-27T22:10:33Z")

</div>

ansible\_python\_interpreter is of course still covered in the docs.  
Perhaps not loudly enough 🙂
