Only forcibly create this dir on el6. It should just work on el7.

This commit is contained in:
Ralph Bean 2014-11-07 19:43:12 +00:00
parent 6bb866e7c7
commit 9fe4345ded

View file

@ -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