Zabbix-stg: minor fixes to API config
This commit is contained in:
parent
9e8f4dcf6a
commit
655f2dc58f
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Use a block so we can specify the connection vars once
|
# Use a block so we can specify the connection vars once
|
||||||
- name: API Block
|
- name: API Block
|
||||||
vars:
|
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_network_os: community.zabbix.zabbix
|
||||||
ansible_connection: httpapi
|
ansible_connection: httpapi
|
||||||
ansible_httpapi_port: 443
|
ansible_httpapi_port: 443
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
- name: Configure Zabbix via api
|
- name: Configure Zabbix via api
|
||||||
ansible.builtin.include_tasks: configure_api.yml
|
ansible.builtin.include_tasks: configure_api.yml
|
||||||
tags:
|
tags:
|
||||||
- zabbix-configuration
|
- zabbix_configuration
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
|
||||||
# - include_tasks: plugins.yml
|
# - include_tasks: plugins.yml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue