From 7cca98e8fe8715ac2afc68067913768d4d7c010b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 29 Jul 2019 19:38:05 +0300 Subject: [PATCH] Fix(cleanup-tmp): Use `shell` instead of `command` --- playbooks/ansible/cleanup-tmp.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 * || :" -- 2.39.5