1
0
IaC/ansible/playbooks/synapse_get_large_rooms.yaml

20 lines
464 B
YAML
Raw Normal View History

2024-10-30 01:52:00 -04:00
# code: language=ansible
- name: Clean Synapse
hosts: localhost
connection: local
become: false
gather_facts: false
tasks:
- name: Get large rooms
ansible.builtin.uri:
url: "https://{{ synapse_host_address }}/_synapse/admin/v1/statistics/database/rooms"
headers:
Authorization: "Bearer {{ synapse_admin_token }}"
register: result
- name: Print result
ansible.builtin.debug:
var: result.json