dotfiles/.ansible/roles/matrix_server/tasks/main.yaml

32 lines
863 B
YAML
Raw Permalink Normal View History

- name: "Matrix: Configuration"
2019-10-12 13:52:04 +01:00
tags:
- config
- matrix
block:
2019-10-20 15:25:37 +01:00
- include: roles/common_server/tasks/docker.yaml
- name: "Matrix: Configuration: homeserver.yaml"
template:
src: "templates/homeserver.yaml.j2"
2019-10-20 15:25:37 +01:00
dest: "/srv/app/docker/matrix/config/homeserver.yaml"
mode: "0400"
owner: "matrix-synapse"
group: "nogroup"
become: yes
2019-10-20 15:25:37 +01:00
- name: "Matrix: Configuration: homeserver.signing.key"
copy:
2019-10-20 15:25:37 +01:00
dest: "/srv/app/docker/matrix/config/homeserver.signing.key"
content: "{{ signing_key }}"
mode: "0400"
owner: "matrix-synapse"
group: "nogroup"
become: yes
2019-10-20 15:25:37 +01:00
- name: "Matrix: Docker: compose.yaml"
copy:
2019-10-20 15:25:37 +01:00
dest: "/srv/app/docker/matrix/compose.yaml"
src: "files/docker-compose.yaml"
mode: "0400"
become: yes