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

35 строки
1.2 KiB

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