# Using extra vars in inventory plugin

**URL:** <https://forum.ansible.com/t/using-extra-vars-in-inventory-plugin/29018>\
**Category:** Ansible Developer\
**Created:** [November 13, 2018, 1:02pm UTC](https://forum.ansible.com/t/using-extra-vars-in-inventory-plugin/29018 "2018-11-13T13:02:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@steven](https://forum.ansible.com/u/steven)\
**Post date:** [November 13, 2018, 1:02pm UTC](https://forum.ansible.com/t/using-extra-vars-in-inventory-plugin/29018/1 "2018-11-13T13:02:42Z")

</div>

Is there a way to access extra vars from an inventory plugin? I’d like to use values passed in the API call.

Thanks,

Steven.

---

<div class="post-metadata">

**Author:** ![j.hill](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@j.hill](https://forum.ansible.com/u/j.hill)\
**Post date:** [January 14, 2019, 11:02am UTC](https://forum.ansible.com/t/using-extra-vars-in-inventory-plugin/29018/2 "2019-01-14T11:02:14Z")

</div>

Did you ever figure out a way to do this? I’m also trying to do the same thing and strugging.

I’ve tried setting up my own variable manager but the extra vars dictionary is woefully empty.
