This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
homeserver-ansible/roles/services/synapse/tasks/main.yml

34 lines
805 B
YAML

- name: Install matrix packages
community.general.pacman:
name: matrix-synapse
state: present
- name: Copy signing key
copy:
src: signing.key.secret
dest: /etc/synapse/signing.key
- name: Deploy matrix homeserver configuration
template:
src: homeserver.yaml.j2
dest: /etc/synapse/homeserver.yaml
- name: Deploy matrix logging configuration
template:
src: log.config.j2
dest: /etc/synapse/log.config
- name: Change systemd unit file to allow access to dataroot
lineinfile:
path: /usr/lib/systemd/system/synapse.service
insertafter: "^WorkingDirectory.*"
regexp: "^ReadWritePaths.*"
line: "ReadWritePaths={{ dataroot }}/synapse/"
state: present
- name: Enable matrix service
service:
name: synapse
enabled: yes
state: started