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:
|
that:
|
||||||
- "output.ansible_facts['collabora']['collabora-online_collabora_1'].state.running"
|
- "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"
|
- name: "Test whether Collabora is healthy from the public internet"
|
||||||
become: false
|
become: false
|
||||||
uri:
|
uri:
|
||||||
url: https://{{ collabora_virtual_host }}
|
url: https://{{ collabora_virtual_host }}
|
||||||
return_content: yes
|
return_content: yes
|
||||||
timeout: 600
|
timeout: 300
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
register: url_check
|
register: url_check
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
until: "'OK' in url_check.content"
|
||||||
- fail:
|
retries: 5
|
||||||
msg: 'Collabora is not available!'
|
delay: 10
|
||||||
when: "'OK' not in url_check.content"
|
tags: health
|
||||||
|
|
Loading…
Add table
Reference in a new issue