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.
 
 

14 righe
422 B

  1. - name: Collect epoche time from date
  2. shell: |
  3. date -d '{{ item }}' +"%s"
  4. register: epoche_time
  5. - name: Purge local media to specific date
  6. shell: |
  7. curl -X POST --header "Authorization: Bearer {{ janitors_token.stdout }}" 'https://matrix.{{ matrix_domain }}/_synapse/admin/v1/purge_media_cache?before_ts={{ epoche_time.stdout }}'
  8. - name: Pause for 5 seconds to let Synapse breathe
  9. pause:
  10. seconds: 5