Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

21 líneas
1.0 KiB

  1. ---
  2. - name: Check Matrix Client API
  3. ansible.builtin.uri:
  4. url: "{{ matrix_dendrite_client_api_url_endpoint_public }}"
  5. follow_redirects: none
  6. validate_certs: "{{ matrix_dendrite_self_check_validate_certificates }}"
  7. register: result_matrix_dendrite_client_api
  8. ignore_errors: true
  9. check_mode: false
  10. delegate_to: 127.0.0.1
  11. become: false
  12. - name: Fail if Matrix Client API not working
  13. ansible.builtin.fail:
  14. msg: "Failed checking Matrix Client API is up at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_dendrite_client_api_url_endpoint_public }}`). Is Dendrite running? Is port 443 open in your firewall? Full error: {{ result_matrix_dendrite_client_api }}"
  15. when: "(result_matrix_dendrite_client_api.failed or 'json' not in result_matrix_dendrite_client_api)"
  16. - name: Report working Matrix Client API
  17. ansible.builtin.debug:
  18. msg: "The Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_dendrite_client_api_url_endpoint_public }}`) is working"