14 lines
338 B
YAML
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
|
|
daemon_reload: true
|
|
state: restarted
|
|
enabled: true
|
|
listen: restart haproxy
|