Initial Commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
---
|
||||
|
||||
- name: Systemd reload
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Postmap sasl_password_maps
|
||||
ansible.builtin.command:
|
||||
cmd: postmap /etc/postfix/sasl_password_maps
|
||||
register: _postfix_postmap_sasl_cmd
|
||||
changed_when: false
|
||||
failed_when: _postfix_postmap_sasl_cmd.rc > 0
|
||||
|
||||
- name: Restart postfix
|
||||
ansible.builtin.systemd:
|
||||
name: postfix
|
||||
state: restarted
|
||||
|
||||
- name: Reload postfix
|
||||
ansible.builtin.systemd:
|
||||
name: postfix.service
|
||||
state: reloaded
|
||||
Reference in New Issue
Block a user