From: Oleg Broytman Date: Thu, 23 Sep 2021 05:03:59 +0000 (+0300) Subject: Use `run-hosts -e` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d4b10fb0ca0d4f06f15ab59e9b9e940e6ee7de4c;p=ansible.git Use `run-hosts -e` --- diff --git a/playbooks/ansible/cleanup-tmp.sh b/playbooks/ansible/cleanup-tmp.sh index 3b5ac46..a946fb8 100755 --- a/playbooks/ansible/cleanup-tmp.sh +++ b/playbooks/ansible/cleanup-tmp.sh @@ -3,7 +3,7 @@ echo localhost rm -rf .ansible/tmp/\* -for host in iskra-aviel.phdru.name oper.med.ru phdru.name; do +for host in `run-hosts -e`; do echo $host ssh -4 $host exec rm -rf .ansible/tmp/\* done