ansible/roles/mail/handlers/main.yml

27 lines
557 B
YAML

---
- name: Restart amavis
service: name=amavis state=restarted
- name: Restart dovecot
service: name=dovecot state=restarted
- name: Restart nginx
service: name=nginx state=restarted
- name: Restart postfix
service: name=postfix state=restarted
- name: Restart postgrey
service: name=postgrey state=restarted
- name: Run postmap
command: postmap /etc/{{ item }}
with_items:
- postfix/helo_access
- postfix/ldap-aliases.cf
- postfix/ldap-virtual-maps.cf
- postfix/recipient_access
- postfix/transport
- postfix/virtual-alias