Fixes for template name
This commit is contained in:
parent
3e23ff6497
commit
517d7b114d
1 changed files with 1 additions and 1 deletions
27
templates/postfix/conf.d/virtual_aliases
Normal file
27
templates/postfix/conf.d/virtual_aliases
Normal file
|
@ -0,0 +1,27 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
# Example
|
||||
#
|
||||
# postfix_aliases:
|
||||
# - domain:
|
||||
# name: mydomain.org
|
||||
# comment: |
|
||||
# # Mydomain.org
|
||||
# # List of Aliases
|
||||
# aliases:
|
||||
# - name: foo
|
||||
# dest:
|
||||
# - "alice@yourdomain.org
|
||||
|
||||
{% if postfix_aliases is defined %}
|
||||
{% for domain in postfix_aliases %}
|
||||
### {{ domain.name}}
|
||||
{% if domain.comment is defined %}
|
||||
{{ domain.comment }}
|
||||
{% endif %}
|
||||
{% for alias in domain.aliases %}
|
||||
{{ "%-50s %s" | format(alias.name + '@' + domain.name, alias.dest | join(',')) }}
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue