indent
This commit is contained in:
parent
f8375f323c
commit
bb4c8e9b6a
1 changed files with 11 additions and 11 deletions
|
|
@ -1,15 +1,15 @@
|
||||||
{%- 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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue