From 47d94984b9f9ea1350344443fba8017351966dad Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 1 Jan 2026 03:43:07 +0300 Subject: [PATCH] Feat(logcheck): Use `rsync --chmod` --- playbooks/logcheck.sh | 1 - playbooks/roles/logcheck/tasks/main.yaml | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/playbooks/logcheck.sh b/playbooks/logcheck.sh index f77f348..05a9d09 100755 --- a/playbooks/logcheck.sh +++ b/playbooks/logcheck.sh @@ -8,6 +8,5 @@ if ! git diff-index --quiet HEAD || test -n "`git ls-files --others`" ; then exit 1 fi -chmod u=rw,g=r,o= roles/logcheck/files/ignore.d/local-* (cd ../.. && exec distribute -aD ansible) exec ./run-playbook logcheck.yaml diff --git a/playbooks/roles/logcheck/tasks/main.yaml b/playbooks/roles/logcheck/tasks/main.yaml index 0034afe..a7eed96 100644 --- a/playbooks/roles/logcheck/tasks/main.yaml +++ b/playbooks/roles/logcheck/tasks/main.yaml @@ -47,8 +47,7 @@ archive: no # avoid setting owner/group recursive: no delete: no - perms: yes times: yes - rsync_opts: '--chown=root:logcheck' - delegate_to: "{{ inventory_hostname }}" + rsync_opts: ['--chown=root:logcheck', '--chmod=u=rw,g=r,o='] loop: ['server', 'workstation'] + delegate_to: "{{ inventory_hostname }}" -- 2.47.3