ansible/roles/postfix/handlers/main.yml

22 lines
509 B
YAML
Raw Normal View History

---
- name: Reload s6-rc
service:
name: s6-rc
state: reloaded
- name: Restart Postfix
2020-10-23 12:28:36 -05:00
command: s6-svc -wU -T 5000 -ru /run/service/postfix
- name: Restart Postfix log
command: s6-svc -wU -T 5000 -ru /run/service/postfix-log
- name: Reload Postfix
command: s6-svc -h /run/service/postfix
- 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 }}'