Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 rivejä
990 B

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Check ma1sd Identity Service
  6. ansible.builtin.uri:
  7. url: "{{ matrix_ma1sd_self_check_endpoint_url }}"
  8. follow_redirects: none
  9. validate_certs: "{{ matrix_ma1sd_self_check_validate_certificates }}"
  10. check_mode: false
  11. register: result_ma1sd
  12. ignore_errors: true
  13. delegate_to: 127.0.0.1
  14. become: false
  15. - name: Fail if ma1sd Identity Service not working
  16. ansible.builtin.fail:
  17. 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 }}"
  18. when: "result_ma1sd.failed or 'json' not in result_ma1sd"
  19. - name: Report working ma1sd Identity Service
  20. ansible.builtin.debug:
  21. msg: "ma1sd at `{{ matrix_ma1sd_hostname }}` is working (checked endpoint: `{{ matrix_ma1sd_self_check_endpoint_url }}`)"