From: Oleg Broytman Date: Thu, 1 Jan 2026 12:27:43 +0000 (+0300) Subject: Feat(logcheck): Replace script `distribute` with `rsync` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1f07cb91d2c360a9ad19952d6d02009e08c23a2d;p=ansible.git Feat(logcheck): Replace script `distribute` with `rsync` --- diff --git a/playbooks/logcheck.sh b/playbooks/logcheck.sh index 05a9d09..dab5efd 100755 --- a/playbooks/logcheck.sh +++ b/playbooks/logcheck.sh @@ -8,5 +8,14 @@ if ! git diff-index --quiet HEAD || test -n "`git ls-files --others`" ; then exit 1 fi -(cd ../.. && exec distribute -aD ansible) +( + set -e + LC_CTYPE=en_US.UTF-8 hosts="`\"$HOME\"/.virtualenvs/ansible/bin/ansible --list-hosts servers | tail -n +2`" + + cd ../.. + for host in $hosts; do + rsync -ahPv --del ansible $host:admin/ + done +) + exec ./run-playbook logcheck.yaml