ansible-collection-famedly-.../tasks/configure.yml

35 lines
761 B
YAML
Raw Normal View History

2018-07-30 16:56:33 +02:00
---
- name: Create directory for media storage
file:
name: "/opt/synapse/{{ item }}"
2018-07-30 16:56:33 +02:00
state: directory
owner: synapse
group: synapse
loop:
- media_store
- uploads
- ssl
2018-07-30 16:56:33 +02:00
2019-02-12 02:43:26 +01:00
- name: Generate registration secret
block:
- command: /usr/bin/pwgen -sn 84 1
register: pwgen
- set_fact:
matrix_synapse_registration_secret: "{{ pwgen.stdout }}"
when: matrix_synapse_registration_secret is not defined
2018-07-30 16:56:33 +02:00
- name: Deploy config
copy:
content: "{{ matrix_synapse_config | to_nice_yaml }}"
2018-07-30 16:56:33 +02:00
dest: "/opt/synapse/homeserver.yaml"
owner: synapse
group: synapse
notify:
- "restart synapse"
- name: Configure logging
import_tasks: logging.yml
2018-07-30 16:56:33 +02:00
2018-12-03 23:29:19 +01:00
- name: Create certificates
2019-02-12 02:38:17 +01:00
include_tasks: crypto.yml