# {{ ansible_managed }} {% for section, options in influxdb_full_config.iteritems() %} [{{ section }}] {% for option, value in options.iteritems() %} {{ 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 %}