29 lines
828 B
YAML
29 lines
828 B
YAML
---
|
|
- name: Install matrix-synapse
|
|
apt:
|
|
name: matrix-synapse
|
|
update_cache: yes
|
|
default_release: stretch-backports
|
|
|
|
- name: Configure matrix-synapse
|
|
template:
|
|
src: matrix-synapse/conf.d/{{ item }}.j2
|
|
dest: /etc/matrix-synapse/conf.d/{{ item }}
|
|
mode: 0600
|
|
owner: matrix-synapse
|
|
loop:
|
|
- database.yaml
|
|
- enable_group_creation.yaml
|
|
- listeners.yaml
|
|
- no_tls.yaml
|
|
- password_providers.yaml
|
|
- server_name.yaml
|
|
- trusted_third_party_id_servers.yaml
|
|
notify: Restart matrix-synapse service
|
|
|
|
- name: Install rest auth provider
|
|
get_url:
|
|
url: https://raw.githubusercontent.com/kamax-matrix/matrix-synapse-rest-auth/master/rest_auth_provider.py
|
|
dest: /usr/local/lib/python3.5/dist-packages/rest_auth_provider.py
|
|
mode: 0755
|
|
notify: Restart matrix-synapse service
|