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/tasks/matrix.yml
2022-02-27 16:05:34 -05:00

34 lines
822 B
YAML

- name: Install matrix packages
community.general.pacman:
name: matrix-synapse
state: present
- name: Copy signing key
copy:
src: synapse/signing.key
dest: /etc/synapse/signing.key
- name: Deploy matrix homeserver configuration
template:
src: synapse/homeserver.yaml.j2
dest: /etc/synapse/homeserver.yaml
- name: Deploy matrix logging configuration
template:
src: synapse/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