]> git.phdru.name Git - ansible.git/commitdiff
Fix(cleanup-tmp): Use `shell` instead of `command`
authorOleg Broytman <phd@phdru.name>
Mon, 29 Jul 2019 16:38:05 +0000 (19:38 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 29 Jul 2019 16:38:05 +0000 (19:38 +0300)
playbooks/ansible/cleanup-tmp.yml

index 8140c85c522c7924002ec241b98beade0a1e3f6c..eb5bc3771817afffc83b8ee64dc49039be19e462 100644 (file)
@@ -3,7 +3,4 @@
   gather_facts: false
   tasks:
     - name: Cleanup ~/.ansible/tmp
-      command: "rm -rf ~/.ansible/tmp/*"
-      args:
-        warn: false
-      failed_when: false
+      shell: "cd ~/.ansible/tmp && exec rm -rf * || :"