47 lines
997 B
YAML
47 lines
997 B
YAML
---
|
|
- name: Update SASL hash
|
|
ansible.builtin.command: postmap hash:/etc/postfix/sasl_passwd
|
|
|
|
- name: Reload postfix
|
|
ansible.builtin.service:
|
|
name: postfix
|
|
state: reloaded
|
|
when: postfix_enabled | bool
|
|
|
|
- name: Restart postfix
|
|
ansible.builtin.service:
|
|
name: postfix
|
|
state: restarted
|
|
when: postfix_enabled | bool
|
|
|
|
- name: Update the network hash table
|
|
ansible.builtin.command: postmap hash:/etc/postfix/network_table
|
|
|
|
- name: start saslauth daemon
|
|
ansible.builtin.service:
|
|
name: saslauthd
|
|
state: started
|
|
enabled: true
|
|
when: postfix_enabled | bool
|
|
|
|
- name: restart saslauth daemon
|
|
ansible.builtin.service:
|
|
name: saslauthd
|
|
state: restarted
|
|
when: postfix_enabled | bool
|
|
|
|
- name: restart opendkim
|
|
ansible.builtin.service:
|
|
name: opendkim
|
|
state: restarted
|
|
|
|
- name: Restart openarc
|
|
ansible.builtin.service:
|
|
name: openarc
|
|
state: restarted
|
|
|
|
- name: restart postsrsd
|
|
ansible.builtin.service:
|
|
name: postsrsd
|
|
state: restarted
|