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