remove leading whitespaces

This commit is contained in:
psy 2021-01-15 13:05:54 +01:00
parent bb4c8e9b6a
commit cc8409ab9c
No known key found for this signature in database
GPG key ID: DFF5B17AC3A8ECF5
2 changed files with 7 additions and 6 deletions

View file

@ -6,4 +6,5 @@
dest: "/etc/rspamd/local.d/{{ item.key }}"
mode: "0440"
owner: _rspamd
lstrip_blocks: yes
loop: "{{ rspamd.local_configs | dict2items }}"

View file

@ -1,16 +1,16 @@
{%- macro keyvalue(key, value, depth=0) -%}
{%- macro keyvalue(key, value, depth=0) %}
{%- if value is string -%}
{{ key }}="{{ value }}";
{%- elif value is mapping %}
{%- elif value is mapping -%}
{{ key }} {
{% for key, value in value.items() %}
{{ keyvalue(key, value) }}
{% endfor %}
{{- keyvalue(key, value) }}
{% endfor -%}
}
{% elif value is iterable and (value is not string and value is not mapping) -%}
{%- elif value is iterable and (value is not string and value is not mapping) -%}
{{ key }}=["{{ value|join('", "') }}"];
{%- endif -%}
{%- endmacro -%}
{% endmacro -%}
# {{ ansible_managed }}
{% for key, value in item.value.items() %}