From: Oleg Broytman Date: Mon, 29 Jul 2019 16:38:05 +0000 (+0300) Subject: Fix(cleanup-tmp): Use `shell` instead of `command` X-Git-Url: https://git.phdru.name/?p=ansible.git;a=commitdiff_plain;h=7cca98e8fe8715ac2afc68067913768d4d7c010b Fix(cleanup-tmp): Use `shell` instead of `command` --- 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 * || :"