ansible-development-environ.../roles/postfix/handlers/main.yml

12 lines
254 B
YAML

---
# handlers file for postfix
- name: restart postfix
service:
name: "{{ postfix_service }}"
state: restarted
when:
- ansible_virtualization_type != "docker"
- name: rebuild alias database
command: postmap "{{ postfix_alias_path }}"