Add space to template

This commit is contained in:
SebClem 2022-01-15 19:18:02 +01:00
parent 51ed3c1095
commit 97a3e6e666
No known key found for this signature in database
GPG Key ID: 3D8E353F900B1305

View File

@ -1,13 +1,6 @@
# {{ ansible_managed }}
# Set global options # Set global options
data_dir = "/var/lib/vector" data_dir = "/var/lib/vector"
[api]
enabled = true
address = "0.0.0.0:8686"
{% set loop_helper = { {% set loop_helper = {
"sources": (sources | default({})), "sources": (sources | default({})),
"transforms": (transforms | default({})), "transforms": (transforms | default({})),
@ -20,15 +13,12 @@ address = "0.0.0.0:8686"
{% if value %} {% if value %}
{%- for skey, svalue in value.items() | sort(attribute='0') %} {%- for skey, svalue in value.items() | sort(attribute='0') %}
{%- if svalue is string %} {%- if svalue is string %}
{%- if svalue[0] == "'" %}
{{ skey }} = {{ svalue }}
{% else %}
{{ skey }} = "{{ svalue }}" {{ skey }} = "{{ svalue }}"
{% endif %}
{% else %} {% else %}
{{ skey }} = {{ svalue | tojson }} {{ skey }} = {{ svalue | tojson }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{%- endif %} {%- endif %}
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}