2023-10-17 13:10:41 +00:00
|
|
|
---
|
|
|
|
|
2023-12-19 14:55:30 +00:00
|
|
|
- hosts: '{{ ip_addr }}'
|
2023-10-17 13:10:41 +00:00
|
|
|
become: yes
|
|
|
|
become_method: sudo
|
|
|
|
gather_facts: no
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
2024-02-15 16:23:12 +00:00
|
|
|
- name: "[CONFIG NAGIOS NRPE] Comprobando si es necesario configurar nagios nrpe service "
|
|
|
|
debug:
|
|
|
|
msg: "No es necesario configurar nagios nrpe service en la máquina"
|
2024-02-15 17:50:53 +00:00
|
|
|
when: nagios_nrpe_enabled is not defined or not nagios_nrpe_enabled
|
2024-02-15 16:23:12 +00:00
|
|
|
|
2023-10-18 10:26:07 +00:00
|
|
|
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
2023-10-17 13:10:41 +00:00
|
|
|
import_role:
|
2024-02-15 17:03:48 +00:00
|
|
|
name: config-nagios-nrpe
|
2024-02-15 17:50:53 +00:00
|
|
|
when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled
|