]> git.phdru.name Git - ansible.git/blobdiff - playbooks/ansible/cleanup-tmp.sh
Fix(ansible/cleanup-tmp.sh): `.ansible` is at `$HOME`
[ansible.git] / playbooks / ansible / cleanup-tmp.sh
index a946fb8840d0e4f48543a85c9c345c6cc280fde9..af8ba206348225a7cb1a6c53f06075fcddeabe17 100755 (executable)
@@ -1,9 +1,9 @@
 #! /bin/sh
 
 echo localhost
-rm -rf .ansible/tmp/\*
+rm -rf "$HOME"/.ansible/tmp/\*
 
-for host in `run-hosts -e`; do
+for host in `run-hosts -L`; do
    echo $host
-   ssh -4 $host exec rm -rf .ansible/tmp/\*
+   ssh $host exec rm -rf .ansible/tmp/\*
 done