# ansible-vars tool POC

**URL:** <https://forum.ansible.com/t/ansible-vars-tool-poc/12714>\
**Category:** Ansible Project\
**Created:** [April 23, 2013, 7:43pm UTC](https://forum.ansible.com/t/ansible-vars-tool-poc/12714 "2013-04-23T19:43:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [April 23, 2013, 7:43pm UTC](https://forum.ansible.com/t/ansible-vars-tool-poc/12714/1 "2013-04-23T19:43:39Z")

</div>

Hi,

I was playing with the Inventory class, and hacked together a small script that returns all inventory variables for a given host/limit pattern:

Basically some POC, but others might find it usefull. Comments for improvement welcome:

[https://github.com/ansible-contrib/ansible-plugins/blob/devel/bin/ansible-vars](https://github.com/ansible-contrib/ansible-plugins/blob/devel/bin/ansible-vars)

Serge
