]> git.phdru.name Git - ansible.git/commitdiff
Fix(ansible/cleanup-tmp.sh): Fix `*`
authorOleg Broytman <phd@phdru.name>
Tue, 1 Aug 2023 16:54:48 +0000 (19:54 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 1 Aug 2023 16:54:48 +0000 (19:54 +0300)
Do not overprotect.

playbooks/ansible/cleanup-tmp.sh

index a706a8f69bb2c9dc33c1f66f7a3dea7621223f2a..f6ae92d75ab10f8c65c59bb733d418c214c15689 100755 (executable)
@@ -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