2022-12-29 21:13:31 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2024-03-01 20:30:18 +00:00
|
|
|
# code: language=ansible
|
2019-02-09 10:20:11 +00:00
|
|
|
---
|
2023-10-03 19:19:51 +00:00
|
|
|
- name: Create subfolders
|
2019-03-04 20:38:36 +00:00
|
|
|
file:
|
2022-11-26 08:15:18 +00:00
|
|
|
name: "{{ services.matrix.volume_folder }}/{{ volume }}"
|
2019-03-04 20:38:36 +00:00
|
|
|
state: directory
|
2019-03-07 20:28:54 +00:00
|
|
|
owner: "991"
|
|
|
|
group: "991"
|
2019-03-04 20:38:36 +00:00
|
|
|
loop:
|
2023-10-03 19:19:51 +00:00
|
|
|
- data
|
|
|
|
- data/uploads
|
|
|
|
- data/media
|
2019-03-04 20:38:36 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: volume
|
|
|
|
|
2023-10-03 19:19:51 +00:00
|
|
|
- name: Create Matrix DB subfolder
|
2019-03-07 20:28:54 +00:00
|
|
|
file:
|
2022-11-26 08:15:18 +00:00
|
|
|
name: "{{ services.matrix.volume_folder }}/db"
|
2019-03-04 20:38:36 +00:00
|
|
|
state: directory
|
2019-02-09 14:43:15 +00:00
|
|
|
|
2023-10-03 19:19:51 +00:00
|
|
|
- name: Upload vhost config for Matrix domain
|
2023-07-09 18:27:32 +00:00
|
|
|
copy:
|
|
|
|
src: vhost/matrix
|
2022-11-26 08:15:18 +00:00
|
|
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.matrix.domain }}"
|
2019-03-05 08:06:19 +00:00
|
|
|
|
2023-04-07 22:35:49 +00:00
|
|
|
- name: Upload homeserver.yaml
|
2019-03-07 20:28:54 +00:00
|
|
|
template:
|
2023-08-05 17:35:55 +00:00
|
|
|
src: matrix/homeserver.yaml.j2
|
2022-11-26 08:15:18 +00:00
|
|
|
dest: "{{ services.matrix.volume_folder }}/data/homeserver.yaml"
|
2019-03-07 20:28:54 +00:00
|
|
|
|
2023-10-03 19:19:51 +00:00
|
|
|
- name: Upload Matrix logging config
|
2023-07-09 18:27:32 +00:00
|
|
|
copy:
|
|
|
|
src: matrix/log.config
|
2022-11-26 08:15:18 +00:00
|
|
|
dest: "{{ services.matrix.volume_folder }}/data/matrix.data.coop.log.config"
|