Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

21 řádky
957 B

  1. ---
  2. - set_fact:
  3. matrix_federation_api_url_endpoint_public: "https://{{ hostname_matrix }}:8448/_matrix/federation/v1/version"
  4. - name: Check Matrix Federation API
  5. uri:
  6. url: "{{ matrix_federation_api_url_endpoint_public }}"
  7. follow_redirects: false
  8. validate_certs: false
  9. register: result_matrix_federation_api
  10. ignore_errors: true
  11. - name: Fail if Matrix Federation API not working
  12. fail:
  13. msg: "Failed checking Matrix Federation API is up at `{{ hostname_matrix }}` (checked endpoint: `{{ matrix_federation_api_url_endpoint_public }}`). Is Synapse running? Is port 8448 open in your firewall? Full error: {{ result_matrix_federation_api }}"
  14. when: "result_matrix_federation_api.failed or 'json' not in result_matrix_federation_api"
  15. - name: Report working Matrix Federation API
  16. debug:
  17. msg: "The Matrix Federation API at `{{ hostname_matrix }}` (checked endpoint: `{{ matrix_federation_api_url_endpoint_public }}`) is working"