2023-03-20 20:01:04 +01:00
|
|
|
### {{ ansible_managed }}
|
|
|
|
|
2023-03-24 20:21:23 +01:00
|
|
|
{% if postfix_domains is defined %}
|
2023-03-24 20:12:26 +01:00
|
|
|
{% for domain in postfix_domains %}
|
2023-03-24 19:40:10 +01:00
|
|
|
{% if domain.type == "relay" %}
|
|
|
|
{% if domain.comment is defined %}
|
2023-03-24 20:12:26 +01:00
|
|
|
# {{ domain.comment }}
|
2023-03-20 20:01:04 +01:00
|
|
|
{% endif %}
|
2023-03-24 19:40:10 +01:00
|
|
|
{{ "%-50s %s" | format(domain.name, domain.relay_host) }}
|
2023-03-20 20:01:04 +01:00
|
|
|
{% endif %}
|
2023-03-24 19:40:10 +01:00
|
|
|
{% endfor %}
|
2023-03-24 20:21:23 +01:00
|
|
|
{% endif %}
|