diff --git a/handlers/main.yml b/handlers/main.yml index a3cb82b..cc8bc10 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -11,3 +11,10 @@ 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 +