Fix up nrpe.cfg race condition on noc

This commit is contained in:
Kevin Fenzi 2014-07-19 16:21:51 +00:00
parent a8775ae19b
commit 6b1411b072
2 changed files with 6 additions and 0 deletions

View file

@ -59,6 +59,7 @@
# Set up our base config.
- name: /etc/nagios/nrpe.cfg
template: src=nrpe.cfg.j2 dest=/etc/nagios/nrpe.cfg
when: not inventory_hostname.startswith('noc')
notify:
- restart nrpe
tags:

View file

@ -63,6 +63,11 @@
- name: Copy specialized nrpe.cfg for nagios server
copy: src=nrpe.cfg dest=/etc/nagios/nrpe.cfg mode=0644 group=root owner=root
notify:
- restart nrpe
tags:
- config
- nagios_server
- name: Copy check_nagios_notifications.py
copy: src=check_nagios_notifications.py dest=/usr/local/bin/check_nagios_notifications.py mode=0755 group=root owner=root