2018-12-02 22:25:20 +00:00
|
|
|
---
|
2019-06-18 16:20:47 +00:00
|
|
|
- name: Install signedjson
|
2019-02-15 02:10:38 +00:00
|
|
|
pip:
|
|
|
|
name: signedjson
|
|
|
|
|
2018-12-03 22:28:34 +00:00
|
|
|
- name: Create signing key
|
2019-02-15 02:10:38 +00:00
|
|
|
matrix_signing_key:
|
2019-02-17 20:10:35 +00:00
|
|
|
path: "{{ matrix_synapse_config.signing_key_path }}"
|
2018-12-03 22:28:34 +00:00
|
|
|
notify:
|
2019-02-15 02:08:08 +00:00
|
|
|
- "restart matrix-synapse"
|
2018-12-03 22:28:34 +00:00
|
|
|
|
2019-02-12 01:58:16 +00:00
|
|
|
- name: Write server's certificate and private key
|
|
|
|
block:
|
2019-02-17 20:52:36 +00:00
|
|
|
- name: create DH parameters
|
|
|
|
openssl_dhparam:
|
|
|
|
path: "{{ matrix_synapse_dh_path }}"
|
|
|
|
owner: synapse
|
2019-02-12 01:58:16 +00:00
|
|
|
- name: Write certificate
|
|
|
|
copy:
|
|
|
|
content: "{{ matrix_synapse_tls_cert }}"
|
2019-02-17 20:10:35 +00:00
|
|
|
dest: "{{ matrix_synapse_config.tls_certificate_path }}"
|
2019-02-12 01:58:16 +00:00
|
|
|
owner: synapse
|
|
|
|
group: synapse
|
|
|
|
mode: "0644"
|
|
|
|
- name: Write keyfile
|
|
|
|
copy:
|
|
|
|
content: "{{ matrix_synapse_tls_key }}"
|
2019-02-17 20:10:35 +00:00
|
|
|
dest: "{{ matrix_synapse_config.tls_private_key_path }}"
|
2019-02-12 01:58:16 +00:00
|
|
|
owner: synapse
|
|
|
|
group: synapse
|
|
|
|
mode: "0600"
|
2019-02-17 20:52:15 +00:00
|
|
|
when: not matrix_synapse_config.no_tls
|