# Print vars to playbook logfile ?

**URL:** <https://forum.ansible.com/t/print-vars-to-playbook-logfile/11585>\
**Category:** Ansible Project\
**Created:** [May 29, 2012, 11:38am UTC](https://forum.ansible.com/t/print-vars-to-playbook-logfile/11585 "2012-05-29T11:38:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansibleguest](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Post date:** [May 29, 2012, 11:38am UTC](https://forum.ansible.com/t/print-vars-to-playbook-logfile/11585/1 "2012-05-29T11:38:11Z")

</div>

Is there an easy way to print variables into the logfile output when  
the playbook while running ?  
That would really help upon debugging to see what is in a variable at  
runtime....

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 29, 2012, 11:43am UTC](https://forum.ansible.com/t/print-vars-to-playbook-logfile/11585/2 "2012-05-29T11:43:48Z")

</div>

Verbose logging improvements are going to be included in 0.5, though  
in 0.4 you may wish to take a look at syslog on remote machines  
coupled with the data in /etc/ansible/setup (or your local user setup  
directory) where the metadata file is written.
