Cambiamos otra vez a zabbix.zabbix

This commit is contained in:
IvanMarts 2025-03-11 10:20:21 +01:00
parent bb9acfeb82
commit 5adf90f589

View File

@ -6,28 +6,9 @@
- community.zabbix
roles:
- role: community.zabbix.zabbix_agent
- role: zabbix.zabbix.agent
vars:
# Especificar que se instalará Zabbix Agent2
zabbix_agent_variant: 2
zabbix_agent_package_state: present
#zabbix_agent_config:
# Server: "192.168.1.10" # IP/host del servidor Zabbix
# ServerActive: "192.168.1.10" # Servidor activo
## Hostname: "{{ ansible_hostname }}" # Nombre único en Zabbix
# AllowRoot: 1 # Permitir ejecución como root
# Ejecutar servicio como root
#zabbix_agent_user: root
#zabbix_agent_group: root
#tasks:
# - name: Copiar configuración personalizada
# ansible.builtin.copy:
# src: config/zabbix_agent2.conf # Archivo en tu directorio de Ansible
# dest: /etc/zabbix/zabbix_agent2.conf
# owner: root
# group: root
# mode: 0644
agent_variant: 2
agent_major_version: 7.2
agent_package_state: present