mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 18:23:40 +02:00
14 lines
443 B
Django/Jinja
14 lines
443 B
Django/Jinja
{% for key in zabbix_agent_conf.keys() | list %}
|
|
{% if zabbix_agent2 and key in ['StartAgents'] %}
|
|
# Ignoring directive {{ key }}={{ zabbix_agent_conf[key] }} as it's not supported in agent2
|
|
{% else %}
|
|
{% 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 %}
|
|
{% endif %}
|
|
{% endfor %}
|