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