Added final health check to ensure availability of Nextcloud from the outside
This commit is contained in:
parent
efedd28d68
commit
df3d47bc9f
1 changed files with 12 additions and 6 deletions
|
@ -133,10 +133,16 @@
|
||||||
port: 443
|
port: 443
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
# - name: "Testing whether the Nextcloud homepage is available#"
|
- name: "Test whether Nextcloud is healthy from the outside"
|
||||||
# action: uri url=http://{{ ansible_ssh_host }} return_content=yes
|
become: false
|
||||||
# register: gl
|
uri:
|
||||||
|
url: https://{{ nextcloud_virtual_host }}
|
||||||
|
return_content: yes
|
||||||
|
timeout: 300
|
||||||
|
validate_certs: no
|
||||||
|
register: url_check
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
# - fail:
|
- fail:
|
||||||
# msg: 'Graylog homepage is not available!'
|
msg: 'Nextcloud homepage is not available!'
|
||||||
# when: "'Graylog Web Interface' not in gl.content"
|
when: "'Nextcloud' not in url_check.content"
|
||||||
|
|
Loading…
Add table
Reference in a new issue