Actualizar linux-config-nagios-nrpe.yaml
This commit is contained in:
parent
3080f9f7b5
commit
022304c9f8
|
@ -6,12 +6,23 @@
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: "[DEBUG] Comprobando si es necesario configurar nagios nrpe service"
|
||||||
|
debug:
|
||||||
|
var: nagios_nrpe_enabled
|
||||||
|
|
||||||
|
- name: "[CONFIG NAGIOS NRPE] Definir valor predeterminado para nagios_nrpe_enabled si no está definido"
|
||||||
|
set_fact:
|
||||||
|
nagios_nrpe_enabled: false
|
||||||
|
when: nagios_nrpe_enabled is not defined
|
||||||
|
|
||||||
- name: "[CONFIG NAGIOS NRPE] Comprobando si es necesario configurar nagios nrpe service"
|
- name: "[CONFIG NAGIOS NRPE] Comprobando si es necesario configurar nagios nrpe service"
|
||||||
debug:
|
debug:
|
||||||
msg: "No es necesario configurar nagios nrpe service en la máquina"
|
msg: "No es necesario configurar nagios nrpe service en la máquina"
|
||||||
when: nagios_nrpe_enabled is not defined or not nagios_nrpe_enabled
|
when: nagios_nrpe_enabled | bool == false
|
||||||
|
|
||||||
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
||||||
import_role:
|
import_role:
|
||||||
name: config-nagios-nrpe
|
name: config-nagios-nrpe
|
||||||
|
when: nagios_nrpe_enabled | bool
|
||||||
|
|
||||||
when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled
|
when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled
|
Loading…
Reference in New Issue