From: Oleg Broytman Date: Tue, 1 Aug 2023 16:54:48 +0000 (+0300) Subject: Fix(ansible/cleanup-tmp.sh): Fix `*` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=784030da5296854e557d14b9447b7bba5717844a;p=ansible.git Fix(ansible/cleanup-tmp.sh): Fix `*` Do not overprotect. --- diff --git a/playbooks/ansible/cleanup-tmp.sh b/playbooks/ansible/cleanup-tmp.sh index a706a8f..f6ae92d 100755 --- a/playbooks/ansible/cleanup-tmp.sh +++ b/playbooks/ansible/cleanup-tmp.sh @@ -3,9 +3,9 @@ LC_CTYPE=en_US.UTF-8 hosts="`\"$HOME\"/.virtualenvs/ansible/bin/ansible --list-hosts servers | tail -n +2`" echo localhost -rm -rf "$HOME"/.ansible/tmp/\* +rm -rf "$HOME"/.ansible/tmp/* for host in $hosts; do echo $host - ssh $host exec rm -rf .ansible/tmp/\* + ssh $host exec rm -rf .ansible/tmp/* done