How to use --tree in ansible playbook

Hello,

I am discovering ansible and i was wondering how to specify a command in my playbook to use the “–tree” command that is normally used like this :

ansible all -m setup -u root --tree /tmp/ansible/general

Translating this into a playbook would look like :

I don’t think many people are using the “–tree” command and with ansible-playbook it would be very very hard to keep the task order and understand this with multiple playbook runs.

Good options for you include Ansible Tower (built in logging, and RESTful access to all of the history) as well as writing a callback plugin - though you’d have to find a filesystem structure that worked for you.