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.
 
 

27 líneas
1.2 KiB

  1. # SPDX-FileCopyrightText: 2022 Jip J. Dekker
  2. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  3. # SPDX-FileCopyrightText: 2022 Slavi Pantaleev
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Check Matrix Client API
  8. ansible.builtin.uri:
  9. url: "{{ matrix_dendrite_client_api_url_endpoint_public }}"
  10. follow_redirects: none
  11. validate_certs: "{{ matrix_dendrite_self_check_validate_certificates }}"
  12. register: result_matrix_dendrite_client_api
  13. ignore_errors: true
  14. check_mode: false
  15. delegate_to: 127.0.0.1
  16. become: false
  17. - name: Fail if Matrix Client API not working
  18. ansible.builtin.fail:
  19. 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 }}"
  20. when: "(result_matrix_dendrite_client_api.failed or 'json' not in result_matrix_dendrite_client_api)"
  21. - name: Report working Matrix Client API
  22. ansible.builtin.debug:
  23. msg: "The Matrix Client API at `{{ matrix_server_fqn_matrix }}` (checked endpoint: `{{ matrix_dendrite_client_api_url_endpoint_public }}`) is working"