haproxy/handlers/main.yaml

17 lines
353 B
YAML
Raw Permalink Normal View History

2023-02-07 22:36:25 +00:00
---
- name: Reload HAProxy
systemd:
name: "{{ haproxy_unit_name }}"
state: reloaded
daemon_reload: yes
2024-05-16 15:20:18 +00:00
masked: no
when: not haproxy_enable_and_start.changed
- name: Restart HAProxy
systemd:
name: "{{ haproxy_unit_name }}"
2024-05-16 15:20:18 +00:00
state: restarted
2023-02-07 22:36:25 +00:00
daemon_reload: yes
2024-05-16 15:20:18 +00:00
masked: no
when: not haproxy_enable_and_start.changed