Separater Handler für den HTTP Response Check
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 13s
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 13s
This commit is contained in:
@@ -13,11 +13,17 @@
|
||||
project_src: /opt/gitea
|
||||
register: docker_compose
|
||||
|
||||
- name: Check Gitea HTTP Response
|
||||
- name: Get Gitea HTTP Response
|
||||
ansible.builtin.uri:
|
||||
url: "https://{{ gitea.hostname }}.{{ gitea.domain }}"
|
||||
register: _result
|
||||
until: _result.status == 200
|
||||
register: gitea_http_response
|
||||
failed_when: 400 <= gitea_http_response.status < 500
|
||||
|
||||
- name: Wait until Gitea is up
|
||||
ansible.builtin.uri:
|
||||
url: "https://{{ gitea.hostname }}.{{ gitea.domain }}"
|
||||
register: gitea_http_response
|
||||
until: gitea_http_response.status == 200
|
||||
retries: 30
|
||||
delay: 2
|
||||
|
||||
|
Reference in New Issue
Block a user