Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

19 righe
548 B

  1. - name: Collect epoche time from date
  2. shell: |
  3. date -d '{{ item }}' +"%s"
  4. register: epoche_time
  5. - name: Purge remote media to specific date
  6. shell: |
  7. curl -X POST --header "Authorization: Bearer {{ janitors_token.stdout[1:-1] }}" '{{ synapse_container_ip.stdout }}:8008/_synapse/admin/v1/purge_media_cache?before_ts={{ epoche_time.stdout }}'
  8. register: purge_command
  9. - name: Print output of purge command
  10. debug:
  11. msg: "{{ purge_command.stdout }}"
  12. - name: Pause for 5 seconds to let Synapse breathe
  13. pause:
  14. seconds: 5