ansible/roles/rspamd/handlers/main.yml
genofire c18f53b8ea Add rspamd support.
Postfix uses the Rspamd proxy as spam filtering milter
and HAProxy exposes the Rspamd webinterface through HTTPS.

Updates #10
2020-10-26 23:46:16 +01:00

20 lines
470 B
YAML

---
- name: Reload s6-rc
service:
name: s6-rc
state: reloaded
- name: Restart Rspamd
command: s6-svc -wR -T 5000 -ru /run/service/rspamd
- name: Restart Rspamd log
command: s6-svc -wR -T 5000 -ru /run/service/rspamd-log
- name: Restart HAProxy
command: s6-svc -wU -T 5000 -ru /run/service/haproxy
- name: Restart HAProxy log
command: s6-svc -wU -T 5000 -ru /run/service/haproxy-log
- name: Reload HAProxy
command: s6-svc -2 /run/service/haproxy