ansible-role-influxdb/templates/influxdb.conf.j2

13 lines
386 B
Django/Jinja

# {{ ansible_managed }}
{% for section, options in influxdb_full_config.items() %}
[{{ section }}]
{% for option, value in options.items() %}
{{ option }} = {% if value is sameas true %}true
{% elif value is sameas false %}false
{% elif value is string %}"{{ value }}"
{% elif value is number %}{{ value }}
{% else %}["{{ value|join('", "') }}"]
{% endif %}
{% endfor %}
{% endfor %}