Closed dshuffin closed 11 months ago
Check this https://github.com/ansible-collections/community.zabbix/issues/1113 please.
Thank you, installing 2.2.0 from ansible-galaxy indeed fixed the issue. Any chance of getting 2.2.0 bundled into ansible package, as even the latest version 9.0.1 includes 2.1.0?
This is weird indeed. That's probably because we still have "the latest" pointing to 2.1.0 https://github.com/ansible-collections/community.zabbix/releases. @pyrodie18 do you mind if I fix this? @dshuffin thanks for finding this inconsistency!
fixed
SUMMARY
Running zabbix_template_info and zabbix_template modules fail with "connection error occurred: string indices must be integers". This seems to happen when template has value maps defined. Another requirement is that the module exports the template from zabbix, so running zabbix_template_info with format none doesn't trigger the error. Also importing the template for the first time using zabbix_template doesn't trigger the error, but re-running the same task again does.
ISSUE TYPE
COMPONENT NAME
zabbix_template_info
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT / Zabbix Version
Zabbix 6.0.23 Control node ubuntu 22.04.
STEPS TO REPRODUCE
export built-in template "APC UPS by SNMP" in json format using zabbix_template_info module
EXPECTED RESULTS
exported template in json format
ACTUAL RESULTS