mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-12 08:43:55 +02:00
Make sure Hookshot is stopped while resetting encryption
Ref: https://matrix-org.github.io/matrix-hookshot/latest/advanced/encryption.html#enabling-encryption-in-hookshot > To fix such issues, stop Hookshot, then reset its crypto store by running yarn start:resetcrypto. Somewhat related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3868
This commit is contained in:
parent
bac0f7546a
commit
a4e3e519d9
@ -1,5 +1,11 @@
|
||||
---
|
||||
|
||||
- name: Ensure matrix-hookshot is stopped
|
||||
ansible.builtin.service:
|
||||
name: matrix-hookshot
|
||||
state: stopped
|
||||
register: matrix_hookshot_stopped
|
||||
|
||||
# `yarn start:resetcrypto` fails, as described here: https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3868
|
||||
# Also related to: https://github.com/matrix-org/matrix-hookshot/issues/730
|
||||
- name: Resetting Hookshot's crypto store
|
||||
@ -14,3 +20,11 @@
|
||||
{{ matrix_hookshot_docker_image }}
|
||||
node --require source-map-support/register /usr/bin/matrix-hookshot/App/ResetCryptoStore.js
|
||||
changed_when: true
|
||||
|
||||
- name: Ensure matrix-hookshot is started, if it previously was
|
||||
ansible.builtin.service:
|
||||
name: matrix-hookshot
|
||||
state: started
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
when: matrix_hookshot_stopped.changed | bool
|
||||
|
Loading…
Reference in New Issue
Block a user