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.
 
 

25 líneas
1.1 KiB

  1. ---
  2. - ansible.builtin.set_fact:
  3. matrix_client_element_url_endpoint_public: "https://{{ matrix_server_fqn_element }}/config.json"
  4. - name: Check Element
  5. ansible.builtin.uri:
  6. url: "{{ matrix_client_element_url_endpoint_public }}"
  7. follow_redirects: none
  8. validate_certs: "{{ matrix_client_element_self_check_validate_certificates }}"
  9. register: matrix_client_element_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 Element not working
  15. ansible.builtin.fail:
  16. msg: "Failed checking Element is up at `{{ matrix_server_fqn_element }}` (checked endpoint: `{{ matrix_client_element_url_endpoint_public }}`). Is Element running? Is port 443 open in your firewall? Full error: {{ matrix_client_element_self_check_result }}"
  17. when: "matrix_client_element_self_check_result.failed or 'json' not in matrix_client_element_self_check_result"
  18. - name: Report working Element
  19. ansible.builtin.debug:
  20. msg: "Element at `{{ matrix_server_fqn_element }}` is working (checked endpoint: `{{ matrix_client_element_url_endpoint_public }}`)"