ansible/common: adjust permissions on /var/log/journal; r?dividehex draft
authorGregory Szorc <gps@mozilla.com>
Thu, 11 May 2017 17:05:20 -0700
changeset 11024 5d1173eaf30ee7b7a62cd3dff0f9c19303a9fede
parent 11023 7337f40ceab78a3b1e99280c174775deca3099d2
child 11025 bf32c1d98347b0fb4665d314a0bd5cc4e2dc3127
push id1673
push userbmo:gps@mozilla.com
push dateFri, 12 May 2017 00:14:35 +0000
reviewersdividehex
ansible/common: adjust permissions on /var/log/journal; r?dividehex By convention on CentOS 7, the systemd-journal group is used to grant access to the journal. This commit modifies the group owner of /var/log/journal to that group and sets the setgid bit so sub-directories inherit group ownership. This will allow users in the systemd-journal group to read files therein. MozReview-Commit-ID: HE34q0RPOZd
ansible/roles/common/tasks/journald.yml
--- a/ansible/roles/common/tasks/journald.yml
+++ b/ansible/roles/common/tasks/journald.yml
@@ -2,10 +2,10 @@
 
 # By default, journald.conf uses Storage=auto. Without a /var/log/journal
 # file, journald logs aren't persisted to disk. If the directory exists,
 # the logs are persisted.
 - name: create /var/log/journal
   file: path=/var/log/journal
         state=directory
         owner=root
-        group=root
-        mode=0755
+        group=systemd-journal
+        mode=2755