From c14826558aaec515722c7293c560a886e6cd7628 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Dec 2014 14:37:36 +0100 Subject: Add a safeguard when no alias are needed --- roles/postfix/templates/aliases.users | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roles/postfix/templates') diff --git a/roles/postfix/templates/aliases.users b/roles/postfix/templates/aliases.users index 20ef480..9b13e3b 100644 --- a/roles/postfix/templates/aliases.users +++ b/roles/postfix/templates/aliases.users @@ -1,5 +1,7 @@ +{% if postfix_aliases is defined %} {% for item in postfix_aliases %} {{ item.alias }}: {% if item.mail is string %} {{ item.mail }} {% else %} {{ item.mail |join(',') }} {% endif %} {% endfor %} +{% endif %} -- cgit