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.
 
 

18 lines
886 B

  1. ---
  2. - name: Check Matrix Federation API
  3. uri:
  4. url: "{{ matrix_synapse_federation_api_url_endpoint_public }}"
  5. follow_redirects: false
  6. validate_certs: false
  7. register: result_matrix_synapse_federation_api
  8. ignore_errors: true
  9. - name: Fail if Matrix Federation API not working
  10. fail:
  11. 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 }}"
  12. when: "result_matrix_synapse_federation_api.failed or 'json' not in result_matrix_synapse_federation_api"
  13. - name: Report working Matrix Federation API
  14. debug:
  15. msg: "The Matrix Federation API at `{{ hostname_matrix }}` (checked endpoint: `{{ matrix_synapse_federation_api_url_endpoint_public }}`) is working"