From ee6087de2901163336c245fa5f0c276fddaded8d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 16 Sep 2024 15:30:21 +0200 Subject: [PATCH] Wait for HAPROXY to be online after a restart. --- handlers/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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 +