X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fansible%2Fcleanup-tmp.yml;h=eb5bc3771817afffc83b8ee64dc49039be19e462;hb=a778cfdeb617354b2c238aa2b7579b84ebed5a29;hp=8140c85c522c7924002ec241b98beade0a1e3f6c;hpb=4ddac78094546713d0e96f88932a0a9cfd1432ae;p=ansible.git diff --git a/playbooks/ansible/cleanup-tmp.yml b/playbooks/ansible/cleanup-tmp.yml index 8140c85..eb5bc37 100644 --- a/playbooks/ansible/cleanup-tmp.yml +++ b/playbooks/ansible/cleanup-tmp.yml @@ -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 * || :"