- name:Report working Matrix Corporal HTTP gateway
ansible.builtin.debug:
msg:"Matrix Corporal is fronting the Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_corporal_self_check_matrix_client_api_url_endpoint_public }}`)"
- name:Fail if Matrix Corporal HTTP API not working
ansible.builtin.fail:
msg:"Failed checking Matrix Corporal is fronting the Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_corporal_self_check_matrix_client_api_url_endpoint_public }}`). Is matrix-corporal running? Is port 443 open in your firewall? Full error: {{ result_corporal_api }}"
when:"result_corporal_api.failed or result_corporal_api.status != 200"
- name:Report working Matrix Corporal HTTP API
ansible.builtin.debug:
msg:"Matrix Corporal API is working at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_corporal_self_check_corporal_api_url_endpoint_public }}`)"