2020-10-22 20:32:54 -05:00
|
|
|
---
|
|
|
|
- name: Reload s6-rc
|
2024-09-17 11:50:09 -05:00
|
|
|
ansible.builtin.service:
|
2020-10-22 20:32:54 -05:00
|
|
|
name: s6-rc
|
|
|
|
state: reloaded
|
|
|
|
|
|
|
|
- name: Restart Postfix
|
2024-09-17 11:50:09 -05:00
|
|
|
ansible.builtin.command: s6-svc -wU -T 5000 -ru {{ s6_scan_dir }}/postfix
|
2020-10-23 12:28:36 -05:00
|
|
|
|
|
|
|
- name: Restart Postfix log
|
2024-09-17 11:50:09 -05:00
|
|
|
ansible.builtin.command: s6-svc -wU -T 5000 -ru {{ s6_scan_dir }}/postfix-log
|
2020-10-22 20:32:54 -05:00
|
|
|
|
|
|
|
- name: Reload Postfix
|
2024-09-17 11:50:09 -05:00
|
|
|
ansible.builtin.command: s6-svc -h {{ s6_scan_dir }}/postfix
|
2020-10-22 20:32:54 -05:00
|
|
|
|
|
|
|
- name: Rebuild Postfix maps
|
2024-09-17 11:50:09 -05:00
|
|
|
ansible.builtin.command: 'postmap {{ item.type }}:{{ item.name }}'
|
2020-10-22 20:32:54 -05:00
|
|
|
args:
|
|
|
|
chdir: /usr/local/etc/postfix
|
|
|
|
when: item.type in postfix_rebuild_types
|
|
|
|
with_items: '{{ postfix_maps }}'
|