- name:Fail if Matrix Corporal HTTP gateway not working
- name:Fail if Matrix Corporal HTTP gateway not working
fail:
fail:
msg:"Failed checking Matrix Corporal is fronting the Matrix Client API at `{{ hostname_matrix }}` (checked endpoint: `{{ corporal_client_api_url_endpoint_public }}`). Is matrix-corporal running? Is port 443 open in your firewall? Full error: {{ result_corporal_client_api }}"
msg:"Failed checking Matrix Corporal is fronting the Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ corporal_client_api_url_endpoint_public }}`). Is matrix-corporal running? Is port 443 open in your firewall? Full error: {{ result_corporal_client_api }}"
when:"result_corporal_client_api.failed or 'Matrix Client-Server API protected by Matrix Corporal' not in result_corporal_client_api.content"
when:"result_corporal_client_api.failed or 'Matrix Client-Server API protected by Matrix Corporal' not in result_corporal_client_api.content"
- name:Report working Matrix Corporal HTTP gateway
- name:Report working Matrix Corporal HTTP gateway
debug:
debug:
msg:"Matrix Corporal is fronting the Matrix Client API at `{{ hostname_matrix }}` (checked endpoint: `{{ corporal_client_api_url_endpoint_public }}`)"
msg:"Matrix Corporal is fronting the Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ corporal_client_api_url_endpoint_public }}`)"
msg:"Failed checking mxisd is up at `{{ hostname_matrix }}` (checked endpoint: `{{ mxisd_url_endpoint_public }}`). Is mxisd running? Is port 443 open in your firewall? Full error: {{ result_mxisd }}"
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 }}"
when:"result_mxisd.failed or 'json' not in result_mxisd"
when:"result_mxisd.failed or 'json' not in result_mxisd"
- name:Report working mxisd Identity Service
- name:Report working mxisd Identity Service
debug:
debug:
msg:"mxisd at `{{ hostname_matrix }}` is working (checked endpoint: `{{ mxisd_url_endpoint_public }}`)"
msg:"mxisd at `{{ matrix_server_fqn_matrix }}` is working (checked endpoint: `{{ mxisd_url_endpoint_public }}`)"
# These well-known files may be served without a `Content-Type: application/json` header,
# These well-known files may be served without a `Content-Type: application/json` header,
# so we can't rely on the uri module's automatic parsing of JSON.
# so we can't rely on the uri module's automatic parsing of JSON.
@ -16,7 +16,7 @@
- name:Fail if .well-known not working on the matrix hostname
- name:Fail if .well-known not working on the matrix hostname
fail:
fail:
msg:"Failed checking that the well-known file for {{ well_known_file_check.purpose }} is configured at `{{ hostname_matrix }}` (checked endpoint: `{{ well_known_url_matrix }}`). Is port 443 open in your firewall? Full error: {{ result_well_known_matrix }}"
msg:"Failed checking that the well-known file for {{ well_known_file_check.purpose }} is configured at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ well_known_url_matrix }}`). Is port 443 open in your firewall? Full error: {{ result_well_known_matrix }}"
when:"result_well_known_matrix.failed"
when:"result_well_known_matrix.failed"
- name:Parse JSON for well-known payload at the matrix hostname
- name:Parse JSON for well-known payload at the matrix hostname
@ -25,12 +25,12 @@
- name:Fail if .well-known not CORS-aware on the matrix hostname
- name:Fail if .well-known not CORS-aware on the matrix hostname
fail:
fail:
msg:"The well-known file for {{ well_known_file_check.purpose }} on `{{ hostname_matrix }}` (checked endpoint: `{{ well_known_url_matrix }}`) is not CORS-aware. The file needs to be served with an Access-Control-Allow-Origin header set."
msg:"The well-known file for {{ well_known_file_check.purpose }} on `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ well_known_url_matrix }}`) is not CORS-aware. The file needs to be served with an Access-Control-Allow-Origin header set."
when:"well_known_file_check.cors and 'access_control_allow_origin' not in result_well_known_matrix"
when:"well_known_file_check.cors and 'access_control_allow_origin' not in result_well_known_matrix"
- name:Report working .well-known on the matrix hostname
- name:Report working .well-known on the matrix hostname
debug:
debug:
msg:"well-known for {{ well_known_file_check.purpose }} is configured correctly for `{{ hostname_matrix }}` (checked endpoint: `{{ well_known_url_matrix }}`)"
msg:"well-known for {{ well_known_file_check.purpose }} is configured correctly for `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ well_known_url_matrix }}`)"
- name:Check .well-known on the identity hostname
- name:Check .well-known on the identity hostname
uri:
uri:
@ -42,7 +42,7 @@
- name:Fail if .well-known not working on the identity hostname
- name:Fail if .well-known not working on the identity hostname
fail:
fail:
msg:"Failed checking that the well-known file for {{ well_known_file_check.purpose }} is configured at `{{ hostname_identity }}` (checked endpoint: `{{ well_known_url_identity }}`). Is port 443 open in your firewall? Full error: {{ result_well_known_identity }}"
msg:"Failed checking that the well-known file for {{ well_known_file_check.purpose }} is configured at `{{ matrix_domain }}` (checked endpoint: `{{ well_known_url_identity }}`). Is port 443 open in your firewall? Full error: {{ result_well_known_identity }}"
when:"result_well_known_identity.failed"
when:"result_well_known_identity.failed"
- name:Parse JSON for well-known payload at the identity hostname
- name:Parse JSON for well-known payload at the identity hostname
@ -51,15 +51,15 @@
- name:Fail if .well-known not CORS-aware on the identity hostname
- name:Fail if .well-known not CORS-aware on the identity hostname
fail:
fail:
msg:"The well-known file for {{ well_known_file_check.purpose }} on `{{ hostname_identity }}` (checked endpoint: `{{ well_known_url_identity }}`) is not CORS-aware. The file needs to be served with an Access-Control-Allow-Origin header set. See docs/configuring-well-known.md"
msg:"The well-known file for {{ well_known_file_check.purpose }} on `{{ matrix_domain }}` (checked endpoint: `{{ well_known_url_identity }}`) is not CORS-aware. The file needs to be served with an Access-Control-Allow-Origin header set. See docs/configuring-well-known.md"
when:"well_known_file_check.cors and 'access_control_allow_origin' not in result_well_known_identity"
when:"well_known_file_check.cors and 'access_control_allow_origin' not in result_well_known_identity"
# For people who manually copy the well-known file, try to detect if it's outdated
# For people who manually copy the well-known file, try to detect if it's outdated
- name:Fail if well-known is different on matrix hostname and identity hostname
- name:Fail if well-known is different on matrix hostname and identity hostname
fail:
fail:
msg:"The well-known files for {{ well_known_file_check.purpose }} at `{{ hostname_matrix }}` and `{{ hostname_identity }}` are different. Perhaps you copied the file ({{ well_known_file_check.path }}) manually before and now it's outdated?"
msg:"The well-known files for {{ well_known_file_check.purpose }} at `{{ matrix_server_fqn_matrix }}` and `{{ matrix_domain }}` are different. Perhaps you copied the file ({{ well_known_file_check.path }}) manually before and now it's outdated?"
# Tasks related to setting up Let's Encrypt's management of certificates
# Tasks related to setting up Let's Encrypt's management of certificates
#
#
- name:(Deprecation) Fail if using outdated configuration
- name:(Deprecation) Catch and report renamed settings
fail:
fail:
msg:"You're using the `host_specific_matrix_ssl_support_email` variable, which has been superseded by `host_specific_matrix_ssl_lets_encrypt_support_email`. Please change your configuration to use the new name!"
msg:>-
when:"matrix_ssl_retrieval_method == 'lets-encrypt' and host_specific_matrix_ssl_support_email is defined"
Your configuration contains a variable, which now has a different name.
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
msg:"Failed checking riot-web is up at `{{ hostname_riot }}` (checked endpoint: `{{ riot_web_url_endpoint_public }}`). Is Riot running? Is port 443 open in your firewall? Full error: {{ result_riot_web }}"
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"
when:"result_riot_web.failed or 'json' not in result_riot_web"
- name:Report working riot-web
- name:Report working riot-web
debug:
debug:
msg:"riot-web at `{{ hostname_riot }}` is working (checked endpoint: `{{ riot_web_url_endpoint_public }}`)"
msg:"riot-web at `{{ matrix_server_fqn_riot }}` is working (checked endpoint: `{{ riot_web_url_endpoint_public }}`)"
msg:"Failed checking Matrix Client API is up at `{{ hostname_matrix }}` (checked endpoint: `{{ matrix_synapse_client_api_url_endpoint_public }}`). Is Synapse running? Is port 443 open in your firewall? Full error: {{ result_matrix_synapse_client_api }}"
msg:"Failed checking Matrix Client API is up at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_synapse_client_api_url_endpoint_public }}`). Is Synapse running? Is port 443 open in your firewall? Full error: {{ result_matrix_synapse_client_api }}"
when:"result_matrix_synapse_client_api.failed or 'json' not in result_matrix_synapse_client_api"
when:"result_matrix_synapse_client_api.failed or 'json' not in result_matrix_synapse_client_api"
- name:Report working Matrix Client API
- name:Report working Matrix Client API
debug:
debug:
msg:"The Matrix Client API at `{{ hostname_matrix }}` (checked endpoint: `{{ matrix_synapse_client_api_url_endpoint_public }}`) is working"
msg:"The Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_synapse_client_api_url_endpoint_public }}`) is working"
msg:"Failed checking Matrix Federation API is up at `{{ hostname_matrix }}` (checked endpoint: `{{ matrix_synapse_federation_api_url_endpoint_public }}`). Is Synapse running? Is port 8448 open in your firewall? Full error: {{ result_matrix_synapse_federation_api }}"
msg:"Failed checking Matrix Federation API is up at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_synapse_federation_api_url_endpoint_public }}`). Is Synapse running? Is port 8448 open in your firewall? Full error: {{ result_matrix_synapse_federation_api }}"
when:"result_matrix_synapse_federation_api.failed or 'json' not in result_matrix_synapse_federation_api"
when:"result_matrix_synapse_federation_api.failed or 'json' not in result_matrix_synapse_federation_api"
- name:Report working Matrix Federation API
- name:Report working Matrix Federation API
debug:
debug:
msg:"The Matrix Federation API at `{{ hostname_matrix }}` (checked endpoint: `{{ matrix_synapse_federation_api_url_endpoint_public }}`) is working"
msg:"The Matrix Federation API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_synapse_federation_api_url_endpoint_public }}`) is working"