- name: Cleanup ~/.ansible/tmp hosts: "{{ hosts | default('all') }}" gather_facts: false tasks: - name: Cleanup ~/.ansible/tmp shell: "cd ~/.ansible/tmp && exec rm -rf * || :"