Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

31 satır
1.4 KiB

  1. # SPDX-FileCopyrightText: 2023 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2024 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - ansible.builtin.set_fact:
  8. matrix_client_schildichat_url_endpoint_public: "{{ matrix_client_schildichat_scheme }}://{{ matrix_client_schildichat_hostname }}/config.json"
  9. - name: Check SchildiChat Web
  10. ansible.builtin.uri:
  11. url: "{{ matrix_client_schildichat_url_endpoint_public }}"
  12. follow_redirects: none
  13. validate_certs: "{{ matrix_client_schildichat_self_check_validate_certificates }}"
  14. register: matrix_client_schildichat_self_check_result
  15. check_mode: false
  16. ignore_errors: true
  17. delegate_to: 127.0.0.1
  18. become: false
  19. - name: Fail if SchildiChat Web not working
  20. ansible.builtin.fail:
  21. msg: "Failed checking SchildiChat Web is up at `{{ matrix_server_fqn_schildichat }}` (checked endpoint: `{{ matrix_client_schildichat_url_endpoint_public }}`). Is SchildiChat Web running? Is port 443 open in your firewall? Full error: {{ matrix_client_schildichat_self_check_result }}"
  22. when: "matrix_client_schildichat_self_check_result.failed or 'json' not in matrix_client_schildichat_self_check_result"
  23. - name: Report working SchildiChat Web
  24. ansible.builtin.debug:
  25. msg: "SchildiChat Web at `{{ matrix_server_fqn_schildichat }}` is working (checked endpoint: `{{ matrix_client_schildichat_url_endpoint_public }}`)"