# using log\_plays in ansible

**URL:** <https://forum.ansible.com/t/using-log-plays-in-ansible/27802>\
**Category:** Ansible Project\
**Created:** [June 15, 2018, 1:52am UTC](https://forum.ansible.com/t/using-log-plays-in-ansible/27802 "2018-06-15T01:52:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnab\_sen](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@arnab\_sen](https://forum.ansible.com/u/arnab_sen)\
**Post date:** [June 15, 2018, 1:52am UTC](https://forum.ansible.com/t/using-log-plays-in-ansible/27802/1 "2018-06-15T01:52:51Z")

</div>

Hi,

I am new to ansible and wanted to use “log\_play” callback plugins.  
I am not able to get my head around on how to use it.

I have created a writable directory “/var/log/ansible/hosts”

Below is a sample playbook.
