mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 05:34:16 +00:00
chore(synapse): ensure all media belongs to synapse user when folder containing it was changed
This commit is contained in:
parent
d234f4a411
commit
2a1a2ca660
1 changed files with 15 additions and 0 deletions
|
@ -42,6 +42,21 @@
|
|||
- "{{ matrix_synapse_config.uploads_path }}"
|
||||
# Needs matrix_synapse_config which only the previous task poplulates fully, otherwise, the secrets are undefined and break at this point
|
||||
tags: ['deploy', 'deploy-synapse']
|
||||
register: synapse_media_dir_info
|
||||
|
||||
- name: Ensure files in media storage directories belong to synapse user
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: synapse
|
||||
group: synapse
|
||||
recurse: true
|
||||
mode: "u=rwX,g=rwX,o=rX"
|
||||
loop:
|
||||
- "{{ matrix_synapse_config.media_store_path }}"
|
||||
- "{{ matrix_synapse_config.uploads_path }}"
|
||||
tags: ['deploy', 'deploy-synapse']
|
||||
when: synapse_media_dir_info.changed
|
||||
|
||||
- name: Merge replication listener config
|
||||
set_fact:
|
||||
|
|
Loading…
Reference in a new issue