ansible/roles/matrix_synapse/tasks/main.yml

29 lines
674 B
YAML
Raw Normal View History

2019-02-16 12:50:18 +01:00
---
- name: Install matrix-synapse
apt:
update_cache: true
2020-07-22 10:04:25 +02:00
name:
- matrix-synapse-py3
- matrix-synapse-ldap3
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