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

12 lines
437 B
YAML
Raw Normal View History

2020-06-08 16:57:40 +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 | bool
register: update_sasl_hash
tags: [ 'postfix-relay', 'postfix_relay', 'postfix_sasl_client' ]
- name: Update SASL hash
shell: postmap hash:/etc/postfix/sasl_passwd
when: update_sasl_hash is changed
tags: [ 'postfix-relay', 'postfix_relay', 'postfix_sasl_client' ]