matrix-docker-ansible-deploy/roles/matrix-awx/tasks/purge_database_build_list.yml

12 lines
457 B
YAML
Raw Normal View History

2021-10-10 05:23:49 +00:00
---
2021-08-13 08:05:57 +00:00
- name: Collect entire room list into stdout
shell: |
2021-11-15 20:43:05 +00:00
curl -X GET --header "Authorization: Bearer {{ janitors_token.stdout[1:-1] }}" '{{ synapse_container_ip.stdout }}:{{ matrix_synapse_container_client_api_port }}/_synapse/admin/v1/rooms?from={{ item }}'
2021-10-10 05:23:49 +00:00
register: awx_rooms_output
2021-11-15 20:43:05 +00:00
2021-08-13 08:05:57 +00:00
- name: Print stdout to file
delegate_to: 127.0.0.1
shell: |
2021-10-10 05:23:49 +00:00
echo '{{ awx_rooms_output.stdout }}' >> /tmp/{{ subscription_id }}_room_list_complete.json