Retrieve paths to be created from the matrix config

This commit is contained in:
Emmanouil Kampitakis 2019-02-15 03:07:03 +01:00
parent 66646427d5
commit 6d04100c19

View file

@ -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 }}"