ansible/roles/matrix_synapse/tasks/main.yml
2020-11-04 19:36:40 +01:00

28 lines
674 B
YAML

---
- name: Install matrix-synapse
apt:
update_cache: true
name:
- matrix-synapse-py3
- matrix-synapse-ldap3
state: present
default_release: stretch-backports
register: apt_result
retries: 3
until: apt_result is succeeded
- 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