diff --git a/tasks/configure.yml b/tasks/configure.yml index 67bb030..eb81608 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -35,7 +35,7 @@ notify: restart postfix when: postfix_sender_relay is defined -- name: postfix | sasl password +- name: postfix | sasl passwd template: src: sasl_passwd.j2 dest: /etc/postfix/sasl_passwd @@ -43,5 +43,5 @@ group: root mode: 0644 notify: restart postfix - when: postfix_sasl_password is defined + when: postfix_sasl_passwd is defined diff --git a/templates/sasl_passwd.j2 b/templates/sasl_passwd.j2 index ce390d1..6a542db 100644 --- a/templates/sasl_passwd.j2 +++ b/templates/sasl_passwd.j2 @@ -1,5 +1,5 @@ {% if postfix_sasl_passwd is defined %} {% for passwd in postfix_sasl_passwd %} -{{ passwd }} +{{ passwd }} {% endfor %} {% endif %}