remove leading whitespaces
This commit is contained in:
parent
bb4c8e9b6a
commit
cc8409ab9c
2 changed files with 7 additions and 6 deletions
|
|
@ -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() %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue