Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

31 строка
1.1 KiB

  1. ---
  2. - name: Ensure matrix-hookshot is stopped
  3. ansible.builtin.service:
  4. name: matrix-hookshot
  5. state: stopped
  6. register: matrix_hookshot_stopped
  7. # `yarn start:resetcrypto` fails, as described here: https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3868
  8. # Also related to: https://github.com/matrix-org/matrix-hookshot/issues/730
  9. - name: Resetting Hookshot's crypto store
  10. ansible.builtin.command:
  11. cmd: |
  12. {{ devture_systemd_docker_base_host_command_docker }} run
  13. --rm
  14. --name={{ matrix_hookshot_identifier }}-reset-crypto
  15. --user={{ matrix_user_uid }}:{{ matrix_user_gid }}
  16. --cap-drop=ALL
  17. --mount type=bind,src={{ matrix_hookshot_base_path }},dst=/data
  18. {{ matrix_hookshot_docker_image }}
  19. node --require source-map-support/register /usr/bin/matrix-hookshot/App/ResetCryptoStore.js
  20. changed_when: true
  21. - name: Ensure matrix-hookshot is started, if it previously was
  22. ansible.builtin.service:
  23. name: matrix-hookshot
  24. state: started
  25. enabled: true
  26. daemon_reload: true
  27. when: matrix_hookshot_stopped.changed | bool