2020-10-23 03:32:54 +02:00
|
|
|
---
|
|
|
|
- name: Reload s6-rc
|
|
|
|
service:
|
|
|
|
name: s6-rc
|
|
|
|
state: reloaded
|
|
|
|
|
|
|
|
- name: Restart Postfix
|
2022-07-04 02:53:23 +02:00
|
|
|
command: s6-svc -wU -T 5000 -ru {{ s6_scan_dir }}/postfix
|
2020-10-23 19:28:36 +02:00
|
|
|
|
|
|
|
- name: Restart Postfix log
|
2022-07-04 02:53:23 +02:00
|
|
|
command: s6-svc -wU -T 5000 -ru {{ s6_scan_dir }}/postfix-log
|
2020-10-23 03:32:54 +02:00
|
|
|
|
|
|
|
- name: Reload Postfix
|
2022-07-04 02:53:23 +02:00
|
|
|
command: s6-svc -h {{ s6_scan_dir }}/postfix
|
2020-10-23 03:32:54 +02:00
|
|
|
|
|
|
|
- name: Rebuild Postfix maps
|
|
|
|
command: 'postmap {{ item.type }}:{{ item.name }}'
|
|
|
|
args:
|
|
|
|
chdir: /usr/local/etc/postfix
|
|
|
|
when: item.type in postfix_rebuild_types
|
|
|
|
with_items: '{{ postfix_maps }}'
|