Dump Variables - BROKEN

Prior to 2.0, I used a task that dumped Ansible variables to an output file using a template.

This technique was super valuable for debugging.

The template looked like this:

HOST Variables (“hostvars”):

I usually just run something like this:

ansible -m debug -a “var=hostvars[‘interesting_host’]” localhost -i test_inventory

Hope this helps,

Jon