Refs #8025 Debian-base - minor fix nrpe to bind ipv4
This commit is contained in:
parent
3ad39e03a8
commit
616beda4b7
|
@ -14,7 +14,6 @@
|
|||
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
|
||||
|
@ -24,3 +23,9 @@
|
|||
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
|
Loading…
Reference in New Issue