mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-23 04:55:46 +00:00
12 lines
417 B
YAML
12 lines
417 B
YAML
---
|
|
|
|
- name: Collect entire room list into stdout
|
|
shell: |
|
|
curl -X GET --header "Authorization: Bearer {{ janitors_token.stdout[1:-1] }}" '{{ synapse_container_ip.stdout }}:8008/_synapse/admin/v1/rooms?from={{ item }}'
|
|
register: awx_rooms_output
|
|
|
|
- name: Print stdout to file
|
|
delegate_to: 127.0.0.1
|
|
shell: |
|
|
echo '{{ awx_rooms_output.stdout }}' >> /tmp/{{ subscription_id }}_room_list_complete.json
|