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

29 строки
1.1 KiB

  1. # SPDX-FileCopyrightText: 2020 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2020 Marcel Partap
  3. # SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. - name: Check ma1sd Identity Service
  9. ansible.builtin.uri:
  10. url: "{{ matrix_ma1sd_self_check_endpoint_url }}"
  11. follow_redirects: none
  12. validate_certs: "{{ matrix_ma1sd_self_check_validate_certificates }}"
  13. check_mode: false
  14. register: result_ma1sd
  15. ignore_errors: true
  16. delegate_to: 127.0.0.1
  17. become: false
  18. - name: Fail if ma1sd Identity Service not working
  19. ansible.builtin.fail:
  20. msg: "Failed checking ma1sd is up at `{{ matrix_ma1sd_hostname }}` (checked endpoint: `{{ matrix_ma1sd_self_check_endpoint_url }}`). Is ma1sd running? Is port 443 open in your firewall? Full error: {{ result_ma1sd }}"
  21. when: "result_ma1sd.failed or 'json' not in result_ma1sd"
  22. - name: Report working ma1sd Identity Service
  23. ansible.builtin.debug:
  24. msg: "ma1sd at `{{ matrix_ma1sd_hostname }}` is working (checked endpoint: `{{ matrix_ma1sd_self_check_endpoint_url }}`)"