Zabbix: role/OS vars won't work in other roles, use a hostvar instead

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
Greg Sutcliffe 2026-03-12 13:04:57 +00:00
commit 5ec7103314
Signed by: gwmngilfen
SSH key fingerprint: SHA256:dNHcz65ApR68w2TkCIAXDBdt4oNL62Fyx48U7dXWuk0
7 changed files with 2 additions and 10 deletions

View file

@ -333,6 +333,7 @@ zabbix_httpapi_use_ssl: true
zabbix_httpapi_validate_certs: false
zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. http://<FQDN>/zabbixeu
# Zabbix agent vars
zabbix_agentd: /etc/zabbix_agentd.conf # Needed for zabbix_sender in other roles
zabbix_host: "zabbix01{{ env_suffix }}.{{ datacenter }}.fedoraproject.org"
zabbix_tls_psk_identity: "Fedora"
zabbix_tls_psk: "{{ zabbix_tls_prod_psk }}" # in ansible-private repo

View file

@ -1,6 +1,7 @@
---
# Defaults variables for role zabbix-agent
zabbix_host: "zabbix.server"
zabbix_agentd: /etc/zabbix/zabbix_agentd.conf
zabbix_agent_hostname: "{{ ansible_hostname }}"
zabbix_base_templates:
- Linux by Zabbix agent active

View file

@ -7,6 +7,4 @@ zabbix_pkgs_list:
- zabbix7.0
- bc
zabbix_agentd: /etc/zabbix_agentd.conf
zabbix_agentd_dir: /etc/zabbix/zabbix_agentd.d

View file

@ -7,6 +7,4 @@ zabbix_pkgs_list:
- zabbix7.0
- bc
zabbix_agentd: /etc/zabbix_agentd.conf
zabbix_agentd_dir: /etc/zabbix/zabbix_agentd.d

View file

@ -7,6 +7,4 @@ zabbix_pkgs_list:
- zabbix7.0
- bc
zabbix_agentd: /etc/zabbix_agentd.conf
zabbix_agentd_dir: /etc/zabbix/zabbix_agentd.d

View file

@ -9,6 +9,4 @@ zabbix_pkgs_list:
- bc
- ncurses-compat-libs # Needed for some megacli tools and raid monitoring checks through zabbix_sender
zabbix_agentd: /etc/zabbix_agentd.conf
zabbix_agentd_dir: /etc/zabbix/zabbix_agentd.d

View file

@ -7,5 +7,3 @@ zabbix_pkgs_list:
- zabbix-agent
- zabbix-sender
- bc
zabbix_agentd: /etc/zabbix/zabbix_agentd.conf