]> git.phdru.name Git - ansible.git/blobdiff - playbooks/ansible/cleanup-tmp.yml
Feat(ansible/cleanup-tmp): Use args `chdir`; ignore errors with `failed_when`
[ansible.git] / playbooks / ansible / cleanup-tmp.yml
index 8140c85c522c7924002ec241b98beade0a1e3f6c..8d49e6af22fe975fea1eb6169df49a3aa04cde00 100644 (file)
@@ -3,7 +3,7 @@
   gather_facts: false
   tasks:
     - name: Cleanup ~/.ansible/tmp
-      command: "rm -rf ~/.ansible/tmp/*"
+      shell: "exec rm -rf *"
       args:
-        warn: false
+        chdir: "~/.ansible/tmp"
       failed_when: false