Adds a retry to the URL check whether Nextcloud is available from the public internet
This commit is contained in:
parent
ac66074c2d
commit
33fcd73c5e
1 changed files with 6 additions and 1 deletions
|
@ -129,10 +129,15 @@
|
||||||
- name: "Test whether Nextcloud is healthy from the outside"
|
- name: "Test whether Nextcloud is healthy from the outside"
|
||||||
become: false
|
become: false
|
||||||
uri:
|
uri:
|
||||||
url: https://{{ nextcloud_virtual_host }}/login
|
url: "{{ nextcloud_overwrite_cli_url }}/login"
|
||||||
|
return_content: yes
|
||||||
timeout: 300
|
timeout: 300
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
|
register: url_check
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
until: "'Nextcloud' in url_check.content"
|
||||||
|
retries: 5
|
||||||
|
delay: 10
|
||||||
tags: health
|
tags: health
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
|
|
Loading…
Add table
Reference in a new issue