mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-12-05 00:59:15 +00:00
Retrieve paths to be created from the matrix config
This commit is contained in:
parent
66646427d5
commit
6d04100c19
1 changed files with 11 additions and 10 deletions
|
@ -1,14 +1,4 @@
|
|||
---
|
||||
- name: Create directory for media storage
|
||||
file:
|
||||
name: "/opt/synapse/{{ item }}"
|
||||
state: directory
|
||||
owner: synapse
|
||||
group: synapse
|
||||
loop:
|
||||
- media_store
|
||||
- uploads
|
||||
- ssl
|
||||
|
||||
- name: Generate registration secret
|
||||
block:
|
||||
|
@ -18,6 +8,17 @@
|
|||
matrix_synapse_registration_secret: "{{ pwgen.stdout }}"
|
||||
when: matrix_synapse_registration_secret is not defined
|
||||
|
||||
- name: Create directory for media storage
|
||||
file:
|
||||
name: "{{ item }}"
|
||||
state: directory
|
||||
owner: synapse
|
||||
group: synapse
|
||||
loop:
|
||||
- "{{ matrix_synapse_config.media_store_path }}"
|
||||
- "{{ matrix_synapse_config.uploads_path }}"
|
||||
- /opt/synapse/tls
|
||||
|
||||
- name: Deploy config
|
||||
copy:
|
||||
content: "{{ matrix_synapse_config | to_nice_yaml }}"
|
||||
|
|
Loading…
Reference in a new issue