vn-ansible/linux-config-zabbix-agent.yaml

18 lines
536 B
YAML

---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: no
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
when: zabbix_agent_enabled is defined and zabbix_agent_enabled