Fix up nrpe.cfg race condition on noc
This commit is contained in:
parent
a8775ae19b
commit
6b1411b072
2 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue