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 - packages
- fedmsg/base - fedmsg/base
# We use setgid here so that the monitoring sockets created by fedmsg services # We only need this on el6. On el7, the fedmsg package uses systemd-tempfiles
# are accessible to the nrpe group. # 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. - name: create a /var/run/fedmsg dir with setgid for monitoring.
file: > file: >
dest=/var/run/fedmsg dest=/var/run/fedmsg
mode=2775 mode=2775
owner=fedmsg owner=fedmsg
group=nrpe group=fedmsg
state=directory state=directory
when: ansible_distribution_major_version != '7'
tags: tags:
- fedmsg/base - fedmsg/base