An Ansible role that installs containerized Zabbix server and Zabbix agents on your systemd enabled linux servers.
- Supports HA mode for server and UI. (HA DB will be added in the future)
- HA mode is enabled by default if there are more than 1 host in
zabbix_server
inventory group.
Ansible
See defaults/main.yml
If using Zabbix in HA mode, pay attention to keepalived_virtual_ipaddress
variable. This is a VIP (Virual IP Address) that shouln't be in use within your network.
None
---
- name: Import zabbix role
hosts: all
become: true
roles:
- ansible-zabbix
[zabbix_server]
zabbix1 ansible_host=192.168.88.223
zabbix2 ansible_host=192.168.88.222
zabbix3 ansible_host=192.168.88.224
[postgres]
zabbix1 ansible_host=192.168.88.223
[zabbix_agent]
alma[1:3]
MIT
Andrey Oschepkov