22 lines
570 B
YAML
22 lines
570 B
YAML
- name: Update SASL hash
|
|
shell: postmap hash:/etc/postfix/sasl_passwd
|
|
|
|
- name: Reload postfix
|
|
service: name=postfix state=reloaded
|
|
when: postfix_enabled | bool
|
|
|
|
- name: Restart postfix
|
|
service: name=postfix state=restarted
|
|
when: postfix_enabled | bool
|
|
|
|
- name: Update the network hash table
|
|
shell: postmap hash:/etc/postfix/network_table
|
|
|
|
- name: start saslauth daemon
|
|
service: name=saslauthd state=started enabled=yes
|
|
when: postfix_enabled | bool
|
|
|
|
- name: restart saslauth daemon
|
|
service: name=saslauthd state=restarted
|
|
when: postfix_enabled | bool
|