This commit is contained in:
psy 2021-01-15 12:39:33 +01:00
parent f8375f323c
commit bb4c8e9b6a
No known key found for this signature in database
GPG key ID: DFF5B17AC3A8ECF5

View file

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