remove leading whitespaces
This commit is contained in:
parent
bb4c8e9b6a
commit
cc8409ab9c
2 changed files with 7 additions and 6 deletions
|
|
@ -6,4 +6,5 @@
|
||||||
dest: "/etc/rspamd/local.d/{{ item.key }}"
|
dest: "/etc/rspamd/local.d/{{ item.key }}"
|
||||||
mode: "0440"
|
mode: "0440"
|
||||||
owner: _rspamd
|
owner: _rspamd
|
||||||
|
lstrip_blocks: yes
|
||||||
loop: "{{ rspamd.local_configs | dict2items }}"
|
loop: "{{ rspamd.local_configs | dict2items }}"
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
{%- macro keyvalue(key, value, depth=0) -%}
|
{%- macro keyvalue(key, value, depth=0) %}
|
||||||
{%- if value is string -%}
|
{%- if value is string -%}
|
||||||
{{ key }}="{{ value }}";
|
{{ key }}="{{ value }}";
|
||||||
{%- elif value is mapping %}
|
{%- elif value is mapping -%}
|
||||||
{{ key }} {
|
{{ key }} {
|
||||||
{% for key, value in value.items() %}
|
{% for key, value in value.items() %}
|
||||||
{{ keyvalue(key, value) }}
|
{{- keyvalue(key, value) }}
|
||||||
{% endfor %}
|
{% 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('", "') }}"];
|
{{ key }}=["{{ value|join('", "') }}"];
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro -%}
|
{% endmacro -%}
|
||||||
|
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
{% for key, value in item.value.items() %}
|
{% for key, value in item.value.items() %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue