Files
ansible-role-git/templates/.config/git/config.j2

14 lines
274 B
Django/Jinja

#jinja2: lstrip_blocks: true
#
# {{ ansible_managed }}
#
{% for section, values in item.value.config.items() %}
[{{ section }}]
{% for key, value in values.items() %}
{% if value | length > 0 %}
{{ key }} = {{ value }}
{% endif %}
{% endfor %}
{% endfor %}