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.
 
 

22 line
884 B

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