2018-10-21 11:58:25 +02:00
---
- set_fact :
2019-02-28 10:51:09 +01:00
mxisd_url_endpoint_public : "https://{{ matrix_server_fqn_matrix }}/_matrix/identity/api/v1"
2018-10-21 11:58:25 +02:00
- name : Check mxisd Identity Service
uri :
url : "{{ mxisd_url_endpoint_public }}"
follow_redirects : false
2019-03-22 08:39:17 +01:00
validate_certs : "{{ matrix_mxisd_self_check_validate_certificates }}"
2018-10-21 11:58:25 +02:00
register : result_mxisd
ignore_errors : true
- name : Fail if mxisd Identity Service not working
fail :
2019-02-28 10:51:09 +01:00
msg : "Failed checking mxisd is up at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ mxisd_url_endpoint_public }}`). Is mxisd running? Is port 443 open in your firewall? Full error: {{ result_mxisd }}"
2018-10-21 11:58:25 +02:00
when : "result_mxisd.failed or 'json' not in result_mxisd"
- name : Report working mxisd Identity Service
debug :
2019-02-28 10:51:09 +01:00
msg : "mxisd at `{{ matrix_server_fqn_matrix }}` is working (checked endpoint: `{{ mxisd_url_endpoint_public }}`)"