Adds a retry to the URL check whether Collabora is available from the public internet
This commit is contained in:
parent
1503143ced
commit
208499b374
1 changed files with 5 additions and 12 deletions
|
@ -52,23 +52,16 @@
|
|||
that:
|
||||
- "output.ansible_facts['collabora']['collabora-online_collabora_1'].state.running"
|
||||
|
||||
- name: "Wait for Collabora service (443/TLS) to become available from the public internet"
|
||||
become: false
|
||||
wait_for:
|
||||
host: "{{ collabora_virtual_host }}"
|
||||
port: 443
|
||||
delegate_to: localhost
|
||||
|
||||
- name: "Test whether Collabora is healthy from the public internet"
|
||||
become: false
|
||||
uri:
|
||||
url: https://{{ collabora_virtual_host }}
|
||||
return_content: yes
|
||||
timeout: 600
|
||||
timeout: 300
|
||||
validate_certs: no
|
||||
register: url_check
|
||||
delegate_to: localhost
|
||||
|
||||
- fail:
|
||||
msg: 'Collabora is not available!'
|
||||
when: "'OK' not in url_check.content"
|
||||
until: "'OK' in url_check.content"
|
||||
retries: 5
|
||||
delay: 10
|
||||
tags: health
|
||||
|
|
Loading…
Add table
Reference in a new issue