mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
zabbix: add clearer ansible tags on zabbix_template role tasks
Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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) }}"
|
||||
|
||||
Reference in New Issue
Block a user