add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 17:23:12 +01:00
parent 3f2ddaa773
commit 3715668663
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- 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"
when: nagios-nrpe_enabled is not defined or not nagios-nrpe_enabled
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
import_role:
name: config-nagios-nrpe

View File

@ -2,6 +2,10 @@
# Install and configure NAGIOS-NRPE
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: "[CONFIG NAGIOS NRPE] Comprobando si es necesario configurar nagios nrpe service "
meta: end_host
when: nagios-nrpe_enabled is not defined or not nagios-nrpe_enabled
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# paso1
# install packages for nagios-nrpe