mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 19:06:39 +08:00
zabbix: Hopefully workaround custom_template conditional.
Signed-off-by: James Antill <james@and.org>
This commit is contained in:
@@ -17,7 +17,13 @@
|
||||
template_json: "{{ lookup('file', item['template'] ) }}"
|
||||
state: present
|
||||
with_items: "{{ zabbix_templates }}" # Templates specific to an ansible group, can be overwridden in inventory/group_vars/group_name
|
||||
when: "{{ item['custom_template'] }}"
|
||||
# 2025-06-20: ansible started warning with:
|
||||
# [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}.
|
||||
# Found: {{ item['custom_template'] }}
|
||||
# So try changing this:
|
||||
# when: "{{ item['custom_template'] }}"
|
||||
# To:
|
||||
when: item.custom_template
|
||||
tags:
|
||||
- zabbix_add_templates
|
||||
- zabbix_templates
|
||||
|
||||
Reference in New Issue
Block a user