recommit with matrix synapse
This commit is contained in:
29
templates/health-check.yml
Normal file
29
templates/health-check.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
- 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
|
||||
Reference in New Issue
Block a user