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

18 lines
536 B
YAML
Raw Normal View History

2023-10-23 15:14:16 +00:00
---
2023-12-19 14:55:30 +00:00
- hosts: '{{ ip_addr }}'
2023-10-23 15:14:16 +00:00
become: yes
become_method: sudo
gather_facts: no
tasks:
2024-02-15 16:46:14 +00:00
- name: "[CONFIG ZABBIX AGENT] Comprobando si es necesario configurar ZABBIX AGENT"
debug:
msg: "No es necesario configurar ZABBIX AGENT en la máquina"
2024-02-15 17:50:53 +00:00
when: zabbix_agent_enabled is not defined or not zabbix_agent_enabled
2024-02-15 16:46:14 +00:00
2023-10-23 15:14:16 +00:00
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
import_role:
2024-02-15 17:10:07 +00:00
name: config-zabbix-agent
2024-02-15 17:50:53 +00:00
when: zabbix_agent_enabled is defined and zabbix_agent_enabled