Files
ansible-collection/roles/haproxy/handlers/main.yml
T
2026-10-02 21:34:01 +04:00

14 lines
338 B
YAML

---
- name: validate haproxy config
ansible.builtin.command: haproxy -c -f /etc/haproxy/haproxy.cfg
changed_when: false
listen: restart haproxy
- name: restart haproxy systemd service unit
ansible.builtin.systemd_service:
name: haproxy
state: restarted
enabled: true
daemon_reload: true
listen: restart haproxy