From 1c6050e55338189e96ef55dc15147032b4be5ffa Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Thu, 27 Apr 2023 21:03:35 +0000 Subject: [PATCH] =?UTF-8?q?pr=C3=BCfe,=20ob=20der=20Server=20wieder=20erre?= =?UTF-8?q?ichbar=20ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/main.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index fc41336..e47b221 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -64,3 +64,10 @@ restarted: true when: gitea_env.changed or gitea_container.changed +- name: Check if {{ gitea.hostname }}.{{ gitea.domain }} is available and returning status 200 + ansible.builtin.uri: + url: "https://{{ gitea.hostname }}.{{ gitea.domain }}" + register: _result + until: _result.status == 200 + retries: 60 + delay: 10