haproxy/handlers/main.yaml

15 lines
314 B
YAML

---
- name: Reload HAProxy
systemd:
name: "{{ haproxy_unit_name }}"
state: reloaded
daemon_reload: yes
when: haproxy_enable_and_start.changed
- name: Restart HAProxy
systemd:
name: "{{ haproxy_unit_name }}"
state: reloaded
daemon_reload: yes
when: haproxy_enable_and_start.changed