File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 28
28
template : >
29
29
src=nrpe.cfg.j2
30
30
dest=/etc/nagios/nrpe.cfg
31
- owner=root group=root mode=0644 backup=yes
31
+ owner=root group=root mode=0644
32
32
notify : restart nagios-nrpe-server
33
33
34
- # Copy nrpe_local.cfg
35
- - name : Ensure nrpe_ansible.cfg is up to date
36
- copy : dest=/etc/nagios/nrpe_ansible.cfg src=nrpe_ansible.cfg
37
- owner=root group=root mode=0644
34
+ # Create nrpe_ansible.cfg
35
+ - name : Create nrpe_ansible.cfg from template
36
+ template : >
37
+ src=nrpe_ansible.cfg.j2
38
+ dest=/etc/nagios/nrpe_ansible.cfg
39
+ owner=root group=root mode=0644
38
40
notify : restart nagios-nrpe-server
39
41
40
42
# Ensure NRPE server is running and will start at boot
Original file line number Diff line number Diff line change
1
+ #################################
2
+ # THIS FILE IS MANAGED BY ANSIBLE
3
+ # DO NOT EDIT LOCALLY
4
+ #################################
5
+
6
+ # Example check
7
+ command[check_mailq]={{ nagios_nrpe_server_plugins_dir }}/check_mailq -c 50 -w 20
8
+
You can’t perform that action at this time.
0 commit comments