ansible/roles/rspamd/handlers/main.yml

20 lines
495 B
YAML

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