Files
York-Simon Johannsen e65ce78895 Fix string handling
2021-11-28 17:20:25 +01:00

12 lines
320 B
Django/Jinja

# {{ ansible_managed }}
{% for key, value in apt_deb822_options.items() %}
{{ key }}: {%- if value is boolean %}
{{ 'Yes' if value else 'No' -}}
{% elif value is string %}
{{ value -}}
{% elif value is iterable and (var is not string and var is not mapping) %}
{{ value | join(' ') -}}
{% endif +%}
{% endfor %}