Refs #8025 Debian-base - minor fix nrpe to bind ipv4

This commit is contained in:
Xavi Lleó 2024-10-08 16:35:53 +02:00
parent 3ad39e03a8
commit 616beda4b7
1 changed files with 6 additions and 1 deletions

View File

@ -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