diff options
| author | Ralph Bean <rbean@redhat.com> | 2014-11-07 19:43:12 +0000 |
|---|---|---|
| committer | Ralph Bean <rbean@redhat.com> | 2014-11-07 19:43:12 +0000 |
| commit | 9fe4345ded377b7a1685c04b8a1492f1850552af (patch) | |
| tree | e528b07317a28fa35fa9e04a1b5ea7f34ad151cc /roles/fedmsg/base/tasks | |
| parent | 6bb866e7c7e4e5553a2bc121e13a1d02a167aaf1 (diff) | |
| download | ansible-9fe4345ded377b7a1685c04b8a1492f1850552af.tar.gz ansible-9fe4345ded377b7a1685c04b8a1492f1850552af.tar.xz ansible-9fe4345ded377b7a1685c04b8a1492f1850552af.zip | |
Only forcibly create this dir on el6. It should just work on el7.
Diffstat (limited to 'roles/fedmsg/base/tasks')
| -rw-r--r-- | roles/fedmsg/base/tasks/main.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/fedmsg/base/tasks/main.yml b/roles/fedmsg/base/tasks/main.yml index 5ec2aa1ce..d9c859ca9 100644 --- a/roles/fedmsg/base/tasks/main.yml +++ b/roles/fedmsg/base/tasks/main.yml @@ -13,15 +13,18 @@ - packages - fedmsg/base -# We use setgid here so that the monitoring sockets created by fedmsg services -# are accessible to the nrpe group. +# We only need this on el6. On el7, the fedmsg package uses systemd-tempfiles +# to generate this effect for us. Note that at the bottom of this role we add +# the nrpe user to the fedmsg group so that it has *write* permissions to a unix +# socket in this dir. - name: create a /var/run/fedmsg dir with setgid for monitoring. file: > dest=/var/run/fedmsg mode=2775 owner=fedmsg - group=nrpe + group=fedmsg state=directory + when: ansible_distribution_major_version != '7' tags: - fedmsg/base |
