ansible-role-postfix-client/tasks/smtp-sasl-auth.yml

14 lines
404 B
YAML
Raw Normal View History

2020-07-18 18:46:58 +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
register: update_sasl_hash
tags: postfix-relay
- name: Update SASL hash
shell: postmap hash:/etc/postfix/sasl_passwd
2020-10-18 19:55:02 +02:00
when:
- update_sasl_hash is defined and update_sasl_hash is changed
- postfix_use_sasl_auth
2020-07-18 18:46:58 +02:00
tags: postfix-relay