ansible-roles/roles/zabbix_agent/templates/zabbix_agentd.conf.j2

16 lines
592 B
Plaintext
Raw Normal View History

2021-12-01 19:13:34 +01:00
{% for key in zabbix_agent_conf.keys() | list %}
2022-01-24 12:00:19 +01:00
{% if zabbix_agent2 and key in ['StartAgents'] %}
# Ignoring directive {{ key }}={{ zabbix_agent_conf[key] }} as it's not supported in agent2
2022-01-27 17:00:04 +01:00
{% elif not zabbix_agent2 and key in ['ControlSocket'] %}
# Ignoring directive {{ key }}={{ zabbix_agent_conf[key] }} as it's not supported in agent
2022-01-24 12:00:19 +01:00
{% else %}
2021-12-01 19:13:34 +01:00
{% 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 %}
2022-01-24 12:00:19 +01:00
{% endif %}
2021-12-01 19:13:34 +01:00
{% endfor %}