summaryrefslogtreecommitdiffstats
path: root/roles/postfix/templates/virtual_mailbox
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-12 14:44:20 +0100
committerMichael Scherer <misc@zarb.org>2014-12-12 14:44:20 +0100
commitd83264f9d2c080ef32668a8849511f43231c5e49 (patch)
tree3caa1a8563ff1c04ea3622c607394b78a65aa22d /roles/postfix/templates/virtual_mailbox
parentc14826558aaec515722c7293c560a886e6cd7628 (diff)
Add more safeguard on file for missing variable
Diffstat (limited to 'roles/postfix/templates/virtual_mailbox')
-rw-r--r--roles/postfix/templates/virtual_mailbox3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/postfix/templates/virtual_mailbox b/roles/postfix/templates/virtual_mailbox
index ced3f62..c406121 100644
--- a/roles/postfix/templates/virtual_mailbox
+++ b/roles/postfix/templates/virtual_mailbox
@@ -1,5 +1,6 @@
# user@{{ ansible_domain }} user
+{% if local_users is defined %}
{% for item in local_users %}
{{ item }}@{{ ansible_domain }} {{ item }}
{% endfor %}
-
+{% endif %}