]> git.phdru.name Git - ansible.git/commitdiff
Feat(logcheck): Use `rsync --chmod`
authorOleg Broytman <phd@phdru.name>
Thu, 1 Jan 2026 00:43:07 +0000 (03:43 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 1 Jan 2026 00:43:07 +0000 (03:43 +0300)
playbooks/logcheck.sh
playbooks/roles/logcheck/tasks/main.yaml

index f77f348272e111dae38809f5be84bc47e1eeb7ab..05a9d0914807febfa21e129cc0296069fb7e0e3f 100755 (executable)
@@ -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
index 0034afe59b561574e3f6421c28fb80a0510a3ac9..a7eed965715ecf352cda4debd781192ef2223fc0 100644 (file)
@@ -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 }}"