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.
 
 

23 satır
1007 B

  1. ---
  2. - set_fact:
  3. matrix_client_element_url_endpoint_public: "https://{{ matrix_server_fqn_element }}/config.json"
  4. - name: Check Element
  5. 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: no
  11. ignore_errors: true
  12. - name: Fail if Element not working
  13. fail:
  14. 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 }}"
  15. when: "matrix_client_element_self_check_result.failed or 'json' not in matrix_client_element_self_check_result"
  16. - name: Report working Element
  17. debug:
  18. msg: "Element at `{{ matrix_server_fqn_element }}` is working (checked endpoint: `{{ matrix_client_element_url_endpoint_public }}`)"