# Ansible-Playbook List All Variables: Plugin?

**URL:** <https://forum.ansible.com/t/ansible-playbook-list-all-variables-plugin/17405>\
**Category:** Ansible Developer\
**Created:** [January 30, 2015, 4:29pm UTC](https://forum.ansible.com/t/ansible-playbook-list-all-variables-plugin/17405 "2015-01-30T16:29:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Lee](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Justin\_Lee](https://forum.ansible.com/u/Justin_Lee)\
**Post date:** [January 30, 2015, 4:29pm UTC](https://forum.ansible.com/t/ansible-playbook-list-all-variables-plugin/17405/1 "2015-01-30T16:29:34Z")

</div>

Hi,

I’m new to this (first time in code contribution). I’ve modified my ansible-playbook to include an option to list all variables in the same way it can list all tasks.

So something like:

ansible-playbook playbook.yml --listvars

It will parse all the variables used in each play. I’ve been wondering how I would contribute the code back. Should I do pull request? Or create a feature/bug label on github? Or should this be a plugin? Should I fork it instead? Or is it already in development?

Sorry for asking so many newbie questions.

Justin

---

<div class="post-metadata">

**Author:** ![Justin\_Lee](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@Justin\_Lee](https://forum.ansible.com/u/Justin_Lee)\
**Post date:** [January 31, 2015, 9:00pm UTC](https://forum.ansible.com/t/ansible-playbook-list-all-variables-plugin/17405/2 "2015-01-31T21:00:50Z")

</div>

Okay. I’ve removed styling changes and submitted by pull request.

[https://github.com/ansible/ansible/pull/10143](https://github.com/ansible/ansible/pull/10143)

Justin

---

<div class="post-metadata">

**Author:** ![Dann\_Bohn](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Dann\_Bohn](https://forum.ansible.com/u/Dann_Bohn)\
**Post date:** [January 31, 2015, 10:03pm UTC](https://forum.ansible.com/t/ansible-playbook-list-all-variables-plugin/17405/3 "2015-01-31T22:03:31Z")

</div>

very cool. I’ve been using an emit\_vars.yml playbook. love to see this baked in
