Improved and simplified healthcheck. Use with --tags health to run.

This commit is contained in:
Jan Beilicke 2020-04-01 21:31:21 +02:00
parent 23cf91f21e
commit c4f78b015d

View file

@ -52,23 +52,12 @@
that:
- "output.ansible_facts['onlyoffice-document-server']['onlyoffice-document-server'].state.running"
- name: "Wait for service (443/TLS) to become available from the public internet"
become: false
wait_for:
host: "{{ onlyoffice_document_server_virtual_host }}"
port: 443
delegate_to: localhost
- name: "Test whether the service is healthy from the public internet"
become: false
uri:
url: https://{{ onlyoffice_document_server_virtual_host }}
return_content: yes
timeout: 600
timeout: 300
validate_certs: no
register: url_check
delegate_to: localhost
# - fail:
# msg: 'Service is not available!'
# when: "'OK' not in url_check.content"
tags: health