ansible-collection-famedly-.../roles/synapse/tasks/crypto.yml

33 lines
874 B
YAML
Raw Normal View History

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