Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

25 строки
1.1 KiB

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