X-Git-Url: https://git.phdru.name/?p=ansible.git;a=blobdiff_plain;f=playbooks%2Fansible%2Fcleanup-tmp.yml;h=8d49e6af22fe975fea1eb6169df49a3aa04cde00;hp=eb5bc3771817afffc83b8ee64dc49039be19e462;hb=d7b3c872cd4adeb6c6bcc27c0fa31826773d6a5d;hpb=99c79f9a766275068b170d2a20cfe294b3133ca0 diff --git a/playbooks/ansible/cleanup-tmp.yml b/playbooks/ansible/cleanup-tmp.yml index eb5bc37..8d49e6a 100644 --- a/playbooks/ansible/cleanup-tmp.yml +++ b/playbooks/ansible/cleanup-tmp.yml @@ -3,4 +3,7 @@ gather_facts: false tasks: - name: Cleanup ~/.ansible/tmp - shell: "cd ~/.ansible/tmp && exec rm -rf * || :" + shell: "exec rm -rf *" + args: + chdir: "~/.ansible/tmp" + failed_when: false