mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-08 19:57:35 +01:00
73af8f7bbb
By default, `--tags=self-check` no longer validates certificates when `matrix_ssl_retrieval_method` is set to `self-signed`. Besides this default, people can also enable/disable validation using the individual role variables manually. Fixes #124 (Github Issue)
22 lines
830 B
YAML
22 lines
830 B
YAML
---
|
|
|
|
- set_fact:
|
|
riot_web_url_endpoint_public: "https://{{ matrix_server_fqn_riot }}/config.json"
|
|
|
|
- name: Check riot-web
|
|
uri:
|
|
url: "{{ riot_web_url_endpoint_public }}"
|
|
follow_redirects: false
|
|
validate_certs: "{{ matrix_riot_web_self_check_validate_certificates }}"
|
|
register: result_riot_web
|
|
ignore_errors: true
|
|
|
|
- name: Fail if riot-web not working
|
|
fail:
|
|
msg: "Failed checking riot-web is up at `{{ matrix_server_fqn_riot }}` (checked endpoint: `{{ riot_web_url_endpoint_public }}`). Is Riot running? Is port 443 open in your firewall? Full error: {{ result_riot_web }}"
|
|
when: "result_riot_web.failed or 'json' not in result_riot_web"
|
|
|
|
- name: Report working riot-web
|
|
debug:
|
|
msg: "riot-web at `{{ matrix_server_fqn_riot }}` is working (checked endpoint: `{{ riot_web_url_endpoint_public }}`)"
|