- 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
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/"
- name: Enable matrix service
service:
name: synapse
enabled: yes
state: started