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

34 lines
854 B
YAML
Raw Normal View History

2019-02-16 12:50:18 +01:00
---
- name: Install matrix-synapse
apt:
update_cache: true
2019-07-22 09:12:55 +02:00
name: matrix-synapse-py3
state: present
2019-02-16 12:50:18 +01:00
default_release: stretch-backports
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
2019-03-12 07:47:07 +01:00
copy:
src: rest_auth_provider.py
2019-08-29 07:04:37 +02:00
dest: /opt/venvs/matrix-synapse/lib/python3.7/site-packages/rest_auth_provider.py
2019-02-26 18:04:46 +01:00
mode: 0755
notify: Restart matrix-synapse service