datacoop.ansible/roles/docker/tasks/services/matrix.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

# vim: ft=yaml.ansible
2019-02-09 10:20:11 +00:00
---
2023-04-07 22:35:49 +00:00
- name: Create Matrix volume folders
file:
name: "{{ services.matrix.volume_folder }}/{{ volume }}"
state: directory
owner: "991"
group: "991"
loop:
- "data"
- "data/uploads"
- "data/media"
loop_control:
loop_var: volume
2023-04-07 22:35:49 +00:00
- name: Create Matrix DB folder
file:
name: "{{ services.matrix.volume_folder }}/db"
state: directory
2019-03-05 08:06:19 +00:00
- name: upload vhost config for matrix domain
copy:
src: vhost/matrix
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
template:
2023-08-05 17:35:55 +00:00
src: matrix/homeserver.yaml.j2
dest: "{{ services.matrix.volume_folder }}/data/homeserver.yaml"
- name: upload matrix logging config
copy:
src: matrix/log.config
dest: "{{ services.matrix.volume_folder }}/data/matrix.data.coop.log.config"
- name: Upload Compose file for Matrix
template:
src: compose-files/matrix.yml.j2
dest: "{{ services.matrix.volume_folder }}/docker-compose.yml"
- name: Deploy Matrix
docker_compose:
project_src: "{{ services.matrix.volume_folder }}"
2023-04-07 22:15:05 +00:00
pull: true
state: present