ansible-role-postfix/handlers/main.yml

22 lines
570 B
YAML
Raw Normal View History

2020-06-08 16:57:40 +02:00
- 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