forked from ccchb/ansible
21 lines
604 B
YAML
21 lines
604 B
YAML
---
|
|
- name: Reload s6-rc
|
|
ansible.builtin.service:
|
|
name: s6-rc
|
|
state: reloaded
|
|
|
|
- name: Restart Postfix
|
|
ansible.builtin.command: s6-svc -wU -T 5000 -ru {{ s6_scan_dir }}/postfix
|
|
|
|
- name: Restart Postfix log
|
|
ansible.builtin.command: s6-svc -wU -T 5000 -ru {{ s6_scan_dir }}/postfix-log
|
|
|
|
- name: Reload Postfix
|
|
ansible.builtin.command: s6-svc -h {{ s6_scan_dir }}/postfix
|
|
|
|
- name: Rebuild Postfix maps
|
|
ansible.builtin.command: 'postmap {{ item.type }}:{{ item.name }}'
|
|
args:
|
|
chdir: /usr/local/etc/postfix
|
|
when: item.type in postfix_rebuild_types
|
|
with_items: '{{ postfix_maps }}'
|