diff --git a/roles/zabbix_agent/templates/zabbix_agentd.conf.j2 b/roles/zabbix_agent/templates/zabbix_agentd.conf.j2 index d4e5938..d4d4157 100644 --- a/roles/zabbix_agent/templates/zabbix_agentd.conf.j2 +++ b/roles/zabbix_agent/templates/zabbix_agentd.conf.j2 @@ -1,3 +1,9 @@ {% for key in zabbix_agent_conf.keys() | list %} +{% if not zabbix_agent_conf[key] is string and zabbix_agent_conf[key] is iterable %} +{% for x in zabbix_agent_conf[key] %} +{{ key }}={{ x }} +{% endfor %} +{% else %} {{ key }}={{ zabbix_agent_conf[key] }} +{% endif %} {% endfor %}