8025-awxRefactor-debianBootStrap #30
|
@ -14,7 +14,6 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
notify: restart-nrpe
|
|
||||||
- name: Create NRPE local configuration file
|
- name: Create NRPE local configuration file
|
||||||
file:
|
file:
|
||||||
path: /etc/nagios/nrpe.d/99-local.cfg
|
path: /etc/nagios/nrpe.d/99-local.cfg
|
||||||
|
@ -24,3 +23,9 @@
|
||||||
mode: u=rw,g=r,o=
|
mode: u=rw,g=r,o=
|
||||||
modification_time: preserve
|
modification_time: preserve
|
||||||
access_time: preserve
|
access_time: preserve
|
||||||
|
- name: Configure nrpe.cfg to bind ipv4
|
||||||
xavi marked this conversation as resolved
Outdated
|
|||||||
|
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
No modificar ficheros con configuración por defecto, utilizar directorio .d