21 lines
421 B
YAML
21 lines
421 B
YAML
---
|
|
- name: Restart haproxy
|
|
service: name=haproxy state=restarted
|
|
when: haproxy_enabled
|
|
|
|
- name: Reload haproxy
|
|
service: name=haproxy state=reloaded
|
|
when: haproxy_enabled
|
|
|
|
- name: Reload rsyslog
|
|
service: name=rsyslog state=reloaded
|
|
when: haproxy_enabled
|
|
|
|
- name: Wait for HAPROXY to be online
|
|
ansible.builtin.wait_for:
|
|
host: 127.0.0.1
|
|
port: "{{ haproxy_admin_port }}"
|
|
delay: 10
|
|
timeout: 90
|
|
|