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:
parent
4f1c51475c
commit
1025b8f076
@ -13,11 +13,17 @@
|
|||||||
project_src: /opt/gitea
|
project_src: /opt/gitea
|
||||||
register: docker_compose
|
register: docker_compose
|
||||||
|
|
||||||
- name: Check Gitea HTTP Response
|
- name: Get Gitea HTTP Response
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "https://{{ gitea.hostname }}.{{ gitea.domain }}"
|
url: "https://{{ gitea.hostname }}.{{ gitea.domain }}"
|
||||||
register: _result
|
register: gitea_http_response
|
||||||
until: _result.status == 200
|
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
|
retries: 30
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
mode: "600"
|
mode: "600"
|
||||||
notify:
|
notify:
|
||||||
- Ensure Gitea is restarted
|
- Ensure Gitea is restarted
|
||||||
- Check Gitea HTTP Response
|
- Wait until Gitea is up
|
||||||
|
|
||||||
- name: Upload docker-compose.yaml
|
- name: Upload docker-compose.yaml
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@ -83,4 +83,4 @@
|
|||||||
notify:
|
notify:
|
||||||
- Output Docker Compose State
|
- Output Docker Compose State
|
||||||
- Ensure Gitea is restarted
|
- Ensure Gitea is restarted
|
||||||
- Check Gitea HTTP Response
|
- Wait until Gitea is up
|
||||||
|
Loading…
Reference in New Issue
Block a user