Add space to template
This commit is contained in:
parent
51ed3c1095
commit
97a3e6e666
@ -1,13 +1,6 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
# Set global options
|
||||
data_dir = "/var/lib/vector"
|
||||
|
||||
[api]
|
||||
enabled = true
|
||||
address = "0.0.0.0:8686"
|
||||
|
||||
|
||||
{% set loop_helper = {
|
||||
"sources": (sources | default({})),
|
||||
"transforms": (transforms | default({})),
|
||||
@ -20,15 +13,12 @@ address = "0.0.0.0:8686"
|
||||
{% if value %}
|
||||
{%- for skey, svalue in value.items() | sort(attribute='0') %}
|
||||
{%- if svalue is string %}
|
||||
{%- if svalue[0] == "'" %}
|
||||
{{ skey }} = {{ svalue }}
|
||||
{% else %}
|
||||
{{ skey }} = "{{ svalue }}"
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ skey }} = {{ svalue | tojson }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user