Generate the registration secret

This commit is contained in:
Emmanouil Kampitakis 2019-02-12 02:43:26 +01:00
parent 427c6483be
commit 6a242309f1

View file

@ -10,6 +10,14 @@
- uploads
- ssl
- 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
- name: Deploy config
template:
src: "homeserver.yaml.j2"