Also, do this the other way around.
This commit is contained in:
parent
4c028cc728
commit
02b8ab294f
1 changed files with 12 additions and 0 deletions
|
@ -137,3 +137,15 @@
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
- nagios_client
|
- nagios_client
|
||||||
|
|
||||||
|
- name: Check if the fedmsg group exists
|
||||||
|
shell: /usr/bin/getent group fedmsg | /usr/bin/wc -l | tr -d ' '
|
||||||
|
register: fedmsg_exists
|
||||||
|
tags:
|
||||||
|
- nagios_client
|
||||||
|
|
||||||
|
- name: Add nrpe user to the fedmsg group if it exists
|
||||||
|
user: name=nrpe groups=fedmsg append=yes
|
||||||
|
when: fedmsg_exists.stdout == "1"
|
||||||
|
tags:
|
||||||
|
- nagios_client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue