haproxy/handlers/main.yaml

17 lines
353 B
YAML

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