# Are extra\_vars accessible in plugins?

**URL:** <https://forum.ansible.com/t/are-extra-vars-accessible-in-plugins/16442>\
**Category:** Ansible Project\
**Created:** [October 6, 2014, 2:02pm UTC](https://forum.ansible.com/t/are-extra-vars-accessible-in-plugins/16442 "2014-10-06T14:02:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Matz](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Guy\_Matz](https://forum.ansible.com/u/Guy_Matz)\
**Post date:** [October 6, 2014, 2:02pm UTC](https://forum.ansible.com/t/are-extra-vars-accessible-in-plugins/16442/1 "2014-10-06T14:02:16Z")

</div>

Hi! Anyone know if it’s possible to access extra\_vars from a plugin?

For example, let’s say I wanted to write an ec2 inventory plugin that could grab hosts for all regions, or as specified in an extra\_vars variable . . .

Thanks a lot,  
Guy

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 6, 2014, 2:20pm UTC](https://forum.ansible.com/t/are-extra-vars-accessible-in-plugins/16442/2 "2014-10-06T14:20:03Z")

</div>

Inventory scripts are different from say, lookup plugins and action plugins.

Inventory plugins get executed outside of variable processing and cannot get these things, but can read environment variables and the like.
