Sample Playbook Help

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.

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