add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 17:46:14 +01:00
parent 092fdd1fcb
commit c8334a41bd
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- name: "[CONFIG ZABBIX AGENT] Comprobando si es necesario configurar ZABBIX AGENT"
debug:
msg: "No es necesario configurar ZABBIX AGENT en la máquina"
when: zabbix-agent_enabled is not defined or not zabbix-agent_enabled
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
import_role:
name: config-zabbix-agent

View File

@ -2,6 +2,10 @@
# Install and configure ZABBIX AGENT
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: "[CONFIG ZABBIX AGENT] Comprobando si es necesario configurar ZABBIX AGENT"
meta: end_host
when: zabbix-agent_enabled is not defined or not zabbix-agent_enabled
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Paso1
# Download zabbix repository