2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- name: Write sasl hash file
|
|
|
|
template: src=sasl_passwd.j2 dest=/etc/postfix/sasl_passwd owner=root group=root mode=0400
|
|
|
|
when: postfix_use_sasl_auth
|
2016-01-22 17:09:57 +01:00
|
|
|
register: update_sasl_hash
|
|
|
|
tags: postfix-relay
|
2015-05-28 11:32:57 +02:00
|
|
|
|
2016-01-22 17:09:57 +01:00
|
|
|
- name: Update SASL hash
|
|
|
|
shell: postmap hash:/etc/postfix/sasl_passwd
|
|
|
|
when: ( update_sasl_hash | changed )
|
|
|
|
tags: postfix-relay
|