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

This commit is contained in:
Jan Beilicke 2020-05-02 22:47:32 +02:00
parent 1503143ced
commit 208499b374

View file

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