2019-12-05 18:35:55 +01:00
|
|
|
---
|
|
|
|
- name: Write sasl hash file
|
|
|
|
template: src=sasl_passwd.j2 dest=/etc/postfix/sasl_passwd owner=root group=root mode=0400
|
2020-02-07 16:30:21 +01:00
|
|
|
when: postfix_use_sasl_auth | bool
|
2019-12-05 18:35:55 +01:00
|
|
|
register: update_sasl_hash
|
2020-04-25 17:28:08 +02:00
|
|
|
tags: [ 'postfix-relay', 'postfix_relay', 'postfix_sasl_client' ]
|
2019-12-05 18:35:55 +01:00
|
|
|
|
|
|
|
- name: Update SASL hash
|
|
|
|
shell: postmap hash:/etc/postfix/sasl_passwd
|
|
|
|
when: update_sasl_hash is changed
|
2020-04-25 17:28:08 +02:00
|
|
|
tags: [ 'postfix-relay', 'postfix_relay', 'postfix_sasl_client' ]
|