# vars plugin

**URL:** <https://forum.ansible.com/t/vars-plugin/34112>\
**Category:** Ansible Project\
**Created:** [October 27, 2020, 2:54am UTC](https://forum.ansible.com/t/vars-plugin/34112 "2020-10-27T02:54:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [October 27, 2020, 2:54am UTC](https://forum.ansible.com/t/vars-plugin/34112/1 "2020-10-27T02:54:17Z")

</div>

peeps,  
I wrote a vars plugin: [https://guy.matz.org/2020/10/26/a-vars-plugin-for-ansible/](https://guy.matz.org/2020/10/26/a-vars-plugin-for-ansible/)

any comments would be appreciated.

Thanks,  
Guy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [November 3, 2020, 4:04pm UTC](https://forum.ansible.com/t/vars-plugin/34112/2 "2020-11-03T16:04:40Z")

</div>

You might want to add a 'stage' setting to optimize when they get  
called, since the data won't change per task in your case, it seems  
you would want to pin it to 'inventory' by default.

[https://docs.ansible.com/ansible/latest/collections/ansible/builtin/host\_group\_vars\_vars.html#parameter-stage](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/host_group_vars_vars.html#parameter-stage)  
[https://docs.ansible.com/ansible/latest/reference\_appendices/config.html#run-vars-plugins](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#run-vars-plugins)

---

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [December 4, 2020, 3:17pm UTC](https://forum.ansible.com/t/vars-plugin/34112/3 "2020-12-04T15:17:16Z")

</div>

Brian! You’ve changed your avatar . . . Thanks so much for the links! I will check them out. Do you know of a link that can tell me how to log from a vars plugin with -v, -vv, -vvv?

Thanks again!!!
