zabbix: add clearer ansible tags on zabbix_template role tasks

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2024-04-25 11:58:40 +01:00
parent 9d97299285
commit 0551f3f343
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
5 changed files with 7 additions and 3 deletions

View file

@ -9,6 +9,7 @@
with_items: "{{ zabbix_templates }}"
tags:
- zabbix_add_hosts_to_hostgroups
- zabbix_templates
vars:
ansible_zabbix_auth_key: "{{ (env == 'staging')|ternary(zabbix_stg_apikey, zabbix_apikey) }}"
ansible_network_os: community.zabbix.zabbix

View file

@ -8,6 +8,7 @@
with_items: "{{ zabbix_templates }}"
tags:
- zabbix_add_templates_to_hosts
- zabbix_templates
vars:
ansible_zabbix_auth_key: "{{ (env == 'staging')|ternary(zabbix_stg_apikey, zabbix_apikey) }}"
ansible_network_os: community.zabbix.zabbix

View file

@ -7,7 +7,8 @@
with_items: "{{ zabbix_templates }}" # Hostgroups specific to an ansible group can be overridden in inventory/group_vars/group_name
run_once: True
tags:
- zabbix_hostgroups
- zabbix_add_hostgroups
- zabbix_templates
vars:
ansible_zabbix_auth_key: "{{ (env == 'staging')|ternary(zabbix_stg_apikey, zabbix_apikey) }}"
ansible_network_os: community.zabbix.zabbix

View file

@ -1,7 +1,7 @@
---
- include_tasks: hostgroups.yml
tags:
- zabbix_hostgroups
- zabbix_add_hostgroups
- include_tasks: add_hosts_to_hostgroups.yml
tags:
@ -9,7 +9,7 @@
- include_tasks: templates.yml
tags:
- zabbix_templates
- zabbix_add_templates
- include_tasks: add_templates_to_hosts.yml
tags:

View file

@ -18,6 +18,7 @@
state: present
with_items: "{{ zabbix_templates }}" # Templates specific to an ansible group, can be overwridden in inventory/group_vars/group_name
tags:
- zabbix_add_templates
- zabbix_templates
vars:
ansible_zabbix_auth_key: "{{ (env == 'staging')|ternary(zabbix_stg_apikey, zabbix_apikey) }}"