ansible-role-zabbix-agent/defaults/main.yml

45 lines
2.1 KiB
YAML

---
zabbix_agent_install: False
zabbix_use_external_repo: True
zabbix_repo_version: '5.2'
zabbix_agent_ubuntu_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/{{ ansible_distribution | lower }}/pool/main/z/zabbix-release/zabbix-release_{{ zabbix_repo_version }}-1+{{ ansible_distribution | lower }}{{ ansible_distribution_version }}_all.deb'
zabbix_agent_centos_repo: 'https://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/rhel/{{ ansible_distribution_major_version }}/x86_64/zabbix-release-{{ zabbix_repo_version }}-1.el{{ ansible_distribution_major_version }}.noarch.rpm'
zabbix_agent_packages:
- 'zabbix-agent'
- 'zabbix-release'
zabbix_agent_conf_dir: /etc/zabbix
zabbix_agent_include_conf_dir: '{{ zabbix_agent_conf_dir }}/zabbix_agentd.d'
zabbix_agent_log_dir: '/var/log/zabbix'
zabbix_agent_tcp_port: 10050
zabbix_agent_debuglevel: 3
# IP used for the outgoing connections
zabbix_agent_source_ip: '{{ ansible_lo.ipv4.address }}'
zabbix_agent_enable_remotecommands: '0'
zabbix_agent_log_remotecommands: '{{ zabbix_agent_enable_remotecommands }}'
zabbix_agent_listen_ip: '{{ ansible_lo.ipv4.address }}'
# No need to set it to 0 to disable the passive checks, there is a variable to enable/disable the passive checks
zabbix_agent_start_agents: 3
# enable/disable the passive checks. Also used by the firewall roles.
zabbix_agent_passive_checks_status: 'disabled'
zabbix_agent_hostname: '{{ ansible_fqdn }}'
zabbix_agent_processing_timeout: 3
zabbix_agent_firewalld_services:
- { service: 'zabbix-agent', state: '{{ zabbix_agent_passive_checks_status }}', zone: '{{ firewalld_default_zone }}' }
# CIDR, separate by comma
# This is the list of servers that can submit passive checks
zabbix_server_allowed_hosts: '127.0.0.1'
# This is the list of servers to which the agent sends the active checks
zabbix_server_active_hosts: '{{ zabbix_server_allowed_hosts }}'
# Only PSK is supported for the time being
zabbix_authentication_method: 'psk'
# Define it in a vault file
# zabbix_psk_identity: ''
# zabbix_psk_string: ''
zabbix_agent_psk_file: '{{ zabbix_agent_conf_dir }}/zabbix_agentd.psk'