mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-12-14 05:02:27 +00:00
27 lines
523 B
YAML
27 lines
523 B
YAML
---
|
|
- name: Create directory for media storage
|
|
file:
|
|
name: "/opt/synapse/{{ item }}"
|
|
state: directory
|
|
owner: synapse
|
|
group: synapse
|
|
loop:
|
|
- media_store
|
|
- uploads
|
|
- ssl
|
|
|
|
- name: Deploy config
|
|
template:
|
|
src: "homeserver.yaml.j2"
|
|
dest: "/opt/synapse/homeserver.yaml"
|
|
owner: synapse
|
|
group: synapse
|
|
notify:
|
|
- "restart synapse"
|
|
|
|
- name: Configure logging
|
|
import_tasks: logging.yml
|
|
|
|
- name: Create certificates
|
|
include_tasks: ssl.yml
|
|
when: not matrix_synapse_skip_ssl
|