Actualizar linux-config-nagios-nrpe.yaml

This commit is contained in:
David Lopez 2024-09-06 20:18:01 +00:00
parent 05e294deec
commit ca6d0623c7
1 changed files with 4 additions and 9 deletions

View File

@ -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
- 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