ansible/roles/matrix-synapse/tasks/main.yml

30 lines
828 B
YAML
Raw Normal View History

2019-02-16 12:50:18 +01:00
---
- name: Install matrix-synapse
apt:
name: matrix-synapse
update_cache: yes
default_release: stretch-backports
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:
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