Matrix Docker Ansible eploy
Não pode escolher mais do que 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.2 KiB

  1. ---
  2. - ansible.builtin.set_fact:
  3. matrix_client_schildichat_url_endpoint_public: "https://{{ matrix_server_fqn_schildichat }}/config.json"
  4. - name: Check schildichat
  5. ansible.builtin.uri:
  6. url: "{{ matrix_client_schildichat_url_endpoint_public }}"
  7. follow_redirects: none
  8. validate_certs: "{{ matrix_client_schildichat_self_check_validate_certificates }}"
  9. register: matrix_client_schildichat_self_check_result
  10. check_mode: false
  11. ignore_errors: true
  12. delegate_to: 127.0.0.1
  13. become: false
  14. - name: Fail if schildichat not working
  15. ansible.builtin.fail:
  16. msg: "Failed checking schildichat is up at `{{ matrix_server_fqn_schildichat }}` (checked endpoint: `{{ matrix_client_schildichat_url_endpoint_public }}`). Is schildichat running? Is port 443 open in your firewall? Full error: {{ matrix_client_schildichat_self_check_result }}"
  17. when: "matrix_client_schildichat_self_check_result.failed or 'json' not in matrix_client_schildichat_self_check_result"
  18. - name: Report working schildichat
  19. ansible.builtin.debug:
  20. msg: "schildichat at `{{ matrix_server_fqn_schildichat }}` is working (checked endpoint: `{{ matrix_client_schildichat_url_endpoint_public }}`)"