1
0
forked from infra/ansible
infra/roles/mail/handlers/main.yml
2020-02-03 19:46:31 +01:00

30 lines
616 B
YAML

---
- 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 postsrsd
service: name=postsrsd state=restarted
- name: Restart redis
service: name=redis-server state=restarted
- name: Restart rspamd
service: name=rspamd state=restarted
- name: Run acertmgr
command: /opt/acertmgr/acertmgr.py
- name: Run postmap
command: postmap /etc/{{ item }}
loop:
- postfix/helo_access
- postfix/recipient_access
- postfix/transport
- postfix/virtual-alias