Adds a retry to the URL check whether Nextcloud is available from the public internet

This commit is contained in:
Jan Beilicke 2020-05-02 22:45:24 +02:00
parent ac66074c2d
commit 33fcd73c5e

View file

@ -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: