8025-awxRefactor-debianBootStrap #30

Merged
juan merged 37 commits from 8025-awxRefactor-debianBootStrap into main 2024-10-16 14:49:33 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 616beda4b7 - Show all commits

View File

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

No modificar ficheros con configuración por defecto, utilizar directorio .d

No modificar ficheros con configuración por defecto, utilizar directorio .d
lineinfile:
path: /etc/nagios/nrpe.cfg
regexp: '^#server_address=127.0.0.1'
line: 'server_address={{ ansible_default_ipv4.address }}'
notify: restart-nrpe