Matrix Docker Ansible eploy
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

25 linhas
1.3 KiB

  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 `{{ 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 }}"
  12. when: "matrix_synapse_federation_enabled and (result_matrix_synapse_federation_api.failed or 'json' not in result_matrix_synapse_federation_api)"
  13. - name: Fail if Matrix Federation API unexpectedly enabled
  14. fail:
  15. msg: "Matrix Federation API is up at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_synapse_federation_api_url_endpoint_public }}`) despite being disabled."
  16. when: "matrix_synapse_federation_enabled == false and not result_matrix_synapse_federation_api.failed"
  17. - name: Report working Matrix Federation API
  18. debug:
  19. msg: "The Matrix Federation API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_synapse_federation_api_url_endpoint_public }}`) is working"
  20. when: "matrix_synapse_federation_enabled"