Commit 3267c5a6 authored by Jean-Marc Le Roux's avatar Jean-Marc Le Roux

Fix the gitlab Ansible role to wait for GitLab to be ready before attempting to send requests.

parent 6dba99bc
......@@ -18,6 +18,16 @@
GITLAB_ROOT_EMAIL: "{{ gitlab_admin_email }}"
GITLAB_ROOT_PASSWORD: "{{ gitlab_admin_password }}"
- name: Wait for GitLab to be ready
uri:
method: HEAD
url: http://127.0.0.1:8000/admin/users/sign_in
register: result
until: result.status == 200
retries: 20
delay: 5
changed_when: false
- name: Check if there is an existing OAuth2 token
stat:
path: /etc/amenda/gitlab_token.json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment