From ca6d0623c7bf474ac8315308f04b4d9d2828ff6a Mon Sep 17 00:00:00 2001 From: David Lopez Date: Fri, 6 Sep 2024 20:18:01 +0000 Subject: [PATCH] Actualizar linux-config-nagios-nrpe.yaml --- linux-config-nagios-nrpe.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/linux-config-nagios-nrpe.yaml b/linux-config-nagios-nrpe.yaml index ef52ee6..6f699d1 100644 --- a/linux-config-nagios-nrpe.yaml +++ b/linux-config-nagios-nrpe.yaml @@ -6,12 +6,7 @@ gather_facts: no tasks: - # Paso 1: Instalar paquetes necesarios para Nagios NRPE - - name: "[CONFIG NAGIOS NRPE] Instalar paquetes nagios-nrpe-server y nagios-nrpe-plugin" - apt: - name: "{{ item }}" - state: present - update_cache: yes - loop: - - nagios-nrpe-server - - nagios-nrpe-plugin \ No newline at end of file + - name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service" + import_role: + name: config-nagios-nrpe + when: nagios_nrpe_enabled is defined and nagios_nrpe_enabled