Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
1011 B

  1. ---
  2. - name: Check Matrix Client API
  3. uri:
  4. url: "{{ matrix_synapse_client_api_url_endpoint_public }}"
  5. follow_redirects: none
  6. validate_certs: "{{ matrix_synapse_self_check_validate_certificates }}"
  7. register: result_matrix_synapse_client_api
  8. ignore_errors: true
  9. when: matrix_synapse_enabled|bool
  10. - name: Fail if Matrix Client API not working
  11. fail:
  12. 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 }}"
  13. when: "matrix_synapse_enabled|bool and (result_matrix_synapse_client_api.failed or 'json' not in result_matrix_synapse_client_api)"
  14. - name: Report working Matrix Client API
  15. debug:
  16. msg: "The Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_synapse_client_api_url_endpoint_public }}`) is working"
  17. when: matrix_synapse_enabled|bool