# Sample Playbook Help

**URL:** <https://forum.ansible.com/t/sample-playbook-help/22751>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [October 9, 2016, 1:43am UTC](https://forum.ansible.com/t/sample-playbook-help/22751 "2016-10-09T01:43:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumar1](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@Kumar1](https://forum.ansible.com/u/Kumar1)\
**Post date:** [October 9, 2016, 1:43am UTC](https://forum.ansible.com/t/sample-playbook-help/22751/1 "2016-10-09T01:43:31Z")

</div>

I have just started learning Ansible so need a help here.  
I am looking for a sample playbook which will list only those files and directories having 777 permission under a specific path (OS: RHEL).The list will be saved as a text file on the host machine. I can not use the Shell or Command module.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 20, 2016, 4:25am UTC](https://forum.ansible.com/t/sample-playbook-help/22751/2 "2016-10-20T04:25:35Z")

</div>

The find module should be able to get the list you need, then the template module can generate the file.
