I currently have a number of async tasks that create a number of temporary files under ~/.ansible_async on each remote host. I would like to delete these whenever a play ends. I know there is the async_status module “clean” mode:
http://docs.ansible.com/ansible/async_status_module.html
However I have a lot of async jobs and would need to keep track of all their jid’s and go onto each host before the play terminates. Is there a setting to just delete the whole contents of this directory when the ansible process ends?
Regards,
Phill