]> git.phdru.name Git - ansible.git/commitdiff
Fix(ansible/cleanup-tmp.sh): Parameter was changed in `run-hosts`
authorOleg Broytman <phd@phdru.name>
Tue, 3 May 2022 11:42:08 +0000 (14:42 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 3 May 2022 11:42:08 +0000 (14:42 +0300)
It's no longer "echo", it's "list hosts".

playbooks/ansible/cleanup-tmp.sh

index 5c404b3dd4cfb9522fbfde28412c89157f63d21e..ef55bdd28e7217450c9a488526cc8397853f8692 100755 (executable)
@@ -3,7 +3,7 @@
 echo localhost
 rm -rf .ansible/tmp/\*
 
-for host in `run-hosts -e`; do
+for host in `run-hosts -L`; do
    echo $host
    ssh $host exec rm -rf .ansible/tmp/\*
 done