mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 04:34:00 +00:00
Do not generate a new Matrix Synapse config, if one already exists
Otherwise certains values in the config file, such as `macaroon_secret_key`, would be regenerated, which is not something that we want. If `macaroon_secret_key` is regenerated, all users' auth tokens will become invalid (effectively logging out all users).
This commit is contained in:
parent
7d74dced28
commit
887d14884e
@ -12,6 +12,11 @@
|
|||||||
docker_image:
|
docker_image:
|
||||||
name: "{{ docker_matrix_image }}"
|
name: "{{ docker_matrix_image }}"
|
||||||
|
|
||||||
|
- name: Check if a Matrix Synapse configuration exists
|
||||||
|
stat:
|
||||||
|
path: "{{ matrix_synapse_data_path }}/homeserver.yaml"
|
||||||
|
register: matrix_synapse_config_stat
|
||||||
|
|
||||||
- name: Generate initial Matrix config
|
- name: Generate initial Matrix config
|
||||||
docker_container:
|
docker_container:
|
||||||
name: matrix-config
|
name: matrix-config
|
||||||
@ -25,6 +30,7 @@
|
|||||||
user: "{{ matrix_user_uid }}:{{ matrix_user_gid }}"
|
user: "{{ matrix_user_uid }}:{{ matrix_user_gid }}"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ matrix_synapse_data_path }}:/data"
|
- "{{ matrix_synapse_data_path }}:/data"
|
||||||
|
when: "not matrix_synapse_config_stat.stat.exists"
|
||||||
|
|
||||||
- name: Augment Matrix config (configure SSL fullchain location)
|
- name: Augment Matrix config (configure SSL fullchain location)
|
||||||
lineinfile: "dest={{ matrix_synapse_data_path }}/homeserver.yaml"
|
lineinfile: "dest={{ matrix_synapse_data_path }}/homeserver.yaml"
|
||||||
|
Loading…
Reference in New Issue
Block a user