Zabbix-stg: minor fixes to API config

This commit is contained in:
Greg Sutcliffe 2025-04-04 13:17:02 +01:00 committed by gwmngilfen
parent 9e8f4dcf6a
commit 655f2dc58f
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# Use a block so we can specify the connection vars once
- name: API Block
vars:
ansible_zabbix_auth_key: "{{ (env == 'staging') | ternary(zabbix_stg_hostname, zabbix_hostname) }}"
ansible_zabbix_auth_key: "{{ (env == 'staging') | ternary(zabbix_stg_apikey, zabbix_apikey) }}"
ansible_network_os: community.zabbix.zabbix
ansible_connection: httpapi
ansible_httpapi_port: 443

View file

@ -7,7 +7,7 @@
- name: Configure Zabbix via api
ansible.builtin.include_tasks: configure_api.yml
tags:
- zabbix-configuration
- zabbix_configuration
when: env == "staging"
# - include_tasks: plugins.yml