Refs #8025 Rol debian-bas. nrpe task - add server_address={{ ansible_default_ipv4.address }} to 90-vn.cfg
This commit is contained in:
parent
39c493c306
commit
0864b8a2f5
|
@ -10,6 +10,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
notify: restart-nrpe
|
||||
- name: Create NRPE local configuration file
|
||||
file:
|
||||
path: /etc/nagios/nrpe.d/99-local.cfg
|
||||
|
@ -19,9 +20,3 @@
|
|||
mode: u=rw,g=r,o=
|
||||
modification_time: preserve
|
||||
access_time: preserve
|
||||
- name: Configure nrpe.cfg to bind ipv4
|
||||
lineinfile:
|
||||
path: /etc/nagios/nrpe.cfg
|
||||
regexp: '^#server_address=127.0.0.1'
|
||||
line: 'server_address={{ ansible_default_ipv4.address }}'
|
||||
notify: restart-nrpe
|
|
@ -1,4 +1,5 @@
|
|||
allowed_hosts={{ nagios_server }}
|
||||
server_address={{ ansible_default_ipv4.address }}
|
||||
|
||||
command[check_disk_root]=/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p /
|
||||
command[check_disk_var]=/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p /var
|
||||
|
|
Loading…
Reference in New Issue