]> git.phdru.name Git - ansible.git/blobdiff - playbooks/ansible-cleanup-tmp.yml
Feat: Add playbooks related to ~/.ansible/tmp
[ansible.git] / playbooks / ansible-cleanup-tmp.yml
diff --git a/playbooks/ansible-cleanup-tmp.yml b/playbooks/ansible-cleanup-tmp.yml
new file mode 100644 (file)
index 0000000..2b46a32
--- /dev/null
@@ -0,0 +1,9 @@
+- name: Cleanup ~/.ansible/tmp
+  hosts: "{{ hosts | default('all') }}"
+  gather_facts: false
+  tasks:
+    - name: Cleanup ~/.ansible/tmp
+      command: "rm -rf ~/.ansible/tmp/*"
+      args:
+        warn: false
+      ignore_errors: true