Files
External-apps/templates/health-check.yml
2026-02-22 21:12:23 -07:00

30 lines
885 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- name: Verify NGINX Proxy Manager UI is up
ansible.builtin.uri:
url: http://10.10.0.19
return_content: no
status_code: 200
register: npm_check
failed_when: npm_check.status != 200
- name: Verify Synapse health endpoint
ansible.builtin.uri:
url: http://10.10.0.35:8008/_matrix/client/versions
return_content: yes
register: synapse_check
failed_when: "'versions' not in synapse_check.json"
- name: Verify Coturn is listening (UDP)
ansible.builtin.command: "nc -zuv 10.10.0.30 3478"
register: turn_check
failed_when: turn_check.rc != 0
- name: Verify mautrix‑voip registration with Synapse
ansible.builtin.uri:
url: "http://10.10.0.35:8008/_matrix/app/v1/rooms"
method: GET
headers:
Authorization: "Bearer {{ synapse_registration_token }}"
status_code: 200
register: voip_check
failed_when: voip_check.status != 200