ansible/roles/postfix/templates/aliases.j2

14 lines
289 B
Django/Jinja

# {{ ansible_managed }}
{% if postfix_aliases is defined and
postfix_aliases is mapping and
postfix_aliases | length %}
{% for k, v in postfix_aliases.items() %}
{% if v is string %}
{{ k }} {{ v }}
{% else %}
{{ k }} {{ v | join(', ') }}
{% endif %}
{% endfor %}
{% endif %}