--- zabbix_agent_port: 10050 # Use agent 2 (go) zabbix_agent2: False # List of servers allowed to connect to the agent (passive checks) zabbix_agent_servers: [] # List of IP allowed to access TCP port 10050 zabbix_agent_src_ip: "{{ zabbix_agent_servers }}" # List of servers the agent will push active checks to zabbix_agent_servers_active: [] zabbix_agent_base_conf: PidFile: /var/run/zabbix/zabbix_agentd.pid ControlSocket: /var/run/zabbix/zabbix_agent2.sock LogType: system Server: "{{ zabbix_agent_servers | join(',') }}" ListenPort: "{{ zabbix_agent_port }}" ServerActive: "{{ zabbix_agent_servers_active | join(',') }}" HostnameItem: 'system.hostname' Timeout: 29 # just a bit less than the proxies' Timeout Include: "{{ ['/etc/zabbix/zabbix_agentd.conf.d/*.conf'] + (zabbix_agent2 | ternary(['/etc/zabbix/zabbix_agent2.d/plugins.d/*.conf'], [])) }}" TLSPSKFile: '/etc/zabbix/zabbix_agentd.psk' TLSPSKIdentity: "{{ inventory_hostname }}-agent" TLSConnect: psk TLSAccept: 'unencrypted,psk' StartAgents: 5 # This one will be ignored on agent2 zabbix_agent_extra_conf: {} zabbix_agent_conf: "{{ zabbix_agent_base_conf | combine(zabbix_agent_extra_conf, recursive=True) }}" # If update is set to False, the role will only ensure packages are installed # If set to True, it will update components to their latest version zabbix_agent_update: False ...