# How to get a list of existing variables from custom action plugin?

**URL:** <https://forum.ansible.com/t/how-to-get-a-list-of-existing-variables-from-custom-action-plugin/20255>\
**Category:** Ansible Developer\
**Created:** [January 18, 2016, 4:15pm UTC](https://forum.ansible.com/t/how-to-get-a-list-of-existing-variables-from-custom-action-plugin/20255 "2016-01-18T16:15:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexey\_Wasilyev](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Alexey\_Wasilyev](https://forum.ansible.com/u/Alexey_Wasilyev)\
**Post date:** [January 18, 2016, 4:15pm UTC](https://forum.ansible.com/t/how-to-get-a-list-of-existing-variables-from-custom-action-plugin/20255/1 "2016-01-18T16:15:01Z")

</div>

Hello everybody.

I am trying to update include\_vars\_merged ([https://gist.github.com/udondan/b730206056a018cf9838](https://gist.github.com/udondan/b730206056a018cf9838)) custom plugin to support ansible 2.0  
I can’t find a right way to get a dict of already defined or loaded variables from custom action plugin - can somebody helps me?

Or maybe there are another way to get variables merged using include\_vars action?

Alexey
