Open smejdil opened 2 years ago
thanks for opening this issue, definitely a good tip
As a temporary workaround you can use the "from_yaml" Ansible filter.
"from_yaml" workaround example.
- name: Import Zabbix template from Ansible dict variable
community.zabbix.zabbix_template:
template_json: "{{ lookup('file', 'my-template.yaml') | from_yaml }}"
state: present
Deafult templates in Zabbix 5.4 and 6.0 are in YAML format. For automated import of templates this format is needed. (XML and JSON is ready)
SUMMARY
Add parametr template_yaml
COMPONENT NAME
Modules: zabbix_template