]> 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 16158c3a847a2bd455ee8fd52aa06fce017d05b1..af8ba206348225a7cb1a6c53f06075fcddeabe17 100755 (executable)
@@ -1,9 +1,9 @@
 #! /bin/sh
 
 echo localhost
-rm -rf .ansible/tmp/\*
+rm -rf "$HOME"/.ansible/tmp/\*
 
-for host in iskra-aviel.phdru.name phdru.name oper.med.ru; 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