ansible/roles/mail/handlers/main.yml

23 lines
474 B
YAML
Raw Normal View History

---
2016-02-15 19:17:28 +01:00
- name: Restart amavis
2016-02-01 20:52:34 +01:00
service: name=amavis state=restarted
2016-02-15 19:17:28 +01:00
- name: Restart dovecot
service: name=dovecot state=restarted
2016-02-15 19:17:28 +01:00
- name: Restart postfix
service: name=postfix state=restarted
2016-02-01 20:52:34 +01:00
2016-02-15 19:17:28 +01:00
- name: Restart postgrey
2016-02-01 20:52:34 +01:00
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/virtual-alias