From 1f07cb91d2c360a9ad19952d6d02009e08c23a2d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 1 Jan 2026 15:27:43 +0300 Subject: [PATCH] Feat(logcheck): Replace script `distribute` with `rsync` --- playbooks/logcheck.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.47.3