Files

13 lines
338 B
YAML
Raw Permalink Normal View History

2026-10-02 21:34:01 +04:00
---
- 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