2019-02-16 12:50:18 +01:00
|
|
|
---
|
|
|
|
- name: Install matrix-synapse
|
|
|
|
apt:
|
|
|
|
name: matrix-synapse
|
2019-03-03 09:00:29 +01:00
|
|
|
update_cache: true
|
2019-02-16 12:50:18 +01:00
|
|
|
default_release: stretch-backports
|
2019-03-03 19:28:57 +01:00
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|
2019-02-16 12:50:18 +01:00
|
|
|
|
2019-02-26 13:23:14 +01:00
|
|
|
- name: Configure matrix-synapse
|
|
|
|
template:
|
|
|
|
src: matrix-synapse/conf.d/{{ item }}.j2
|
2019-02-26 13:34:30 +01:00
|
|
|
dest: /etc/matrix-synapse/conf.d/{{ item }}
|
|
|
|
mode: 0600
|
2019-02-26 13:42:45 +01:00
|
|
|
owner: matrix-synapse
|
2019-02-26 13:23:14 +01:00
|
|
|
loop:
|
2019-02-26 13:34:30 +01:00
|
|
|
- database.yaml
|
2019-02-26 18:04:46 +01:00
|
|
|
- enable_group_creation.yaml
|
2019-02-26 13:34:30 +01:00
|
|
|
- listeners.yaml
|
|
|
|
- no_tls.yaml
|
2019-02-26 18:04:46 +01:00
|
|
|
- password_providers.yaml
|
2019-02-26 13:34:30 +01:00
|
|
|
- server_name.yaml
|
2019-02-26 16:49:18 +01:00
|
|
|
- trusted_third_party_id_servers.yaml
|
2019-02-26 13:23:14 +01:00
|
|
|
notify: Restart matrix-synapse service
|
|
|
|
|
2019-02-26 18:04:46 +01:00
|
|
|
- name: Install rest auth provider
|
|
|
|
get_url:
|
2019-03-03 08:18:50 +01:00
|
|
|
url: "{{ synapse_rest_auth_url }}"
|
2019-02-26 18:04:46 +01:00
|
|
|
dest: /usr/local/lib/python3.5/dist-packages/rest_auth_provider.py
|
|
|
|
mode: 0755
|
|
|
|
notify: Restart matrix-synapse service
|