# Using variables in dynamic inventory plugins

**URL:** <https://forum.ansible.com/t/using-variables-in-dynamic-inventory-plugins/31553>\
**Category:** Ansible Project\
**Created:** [October 28, 2019, 9:50am UTC](https://forum.ansible.com/t/using-variables-in-dynamic-inventory-plugins/31553 "2019-10-28T09:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danila](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Danila](https://forum.ansible.com/u/Danila)\
**Post date:** [October 28, 2019, 9:50am UTC](https://forum.ansible.com/t/using-variables-in-dynamic-inventory-plugins/31553/1 "2019-10-28T09:50:29Z")

</div>

Hi, I am trying to use dynamic inventory plugin gce\_compute.  
I’ve created file named 00\_vars.yaml

`

---

<div class="post-metadata">

**Author:** ![Alexsey\_S](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alexsey\_S](https://forum.ansible.com/u/Alexsey_S)\
**Post date:** [October 28, 2019, 7:11pm UTC](https://forum.ansible.com/t/using-variables-in-dynamic-inventory-plugins/31553/2 "2019-10-28T19:11:15Z")

</div>

you probly want to use vars\_files vs vars
