WIP: matrix
This commit is contained in:
parent
cb861223ea
commit
b638cd7310
21 changed files with 249 additions and 14 deletions
roles/matrix/tasks
31
roles/matrix/tasks/main.yml
Normal file
31
roles/matrix/tasks/main.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
- name: Create app directory
|
||||
file:
|
||||
path: "{{ service_dir }}"
|
||||
state: directory
|
||||
- name: Copy signing key
|
||||
copy:
|
||||
src: "{{ role_path }}/files/matrix.log.config"
|
||||
dest: "{{ service_dir }}/matrix.log.config"
|
||||
- name: Copy Docker Compose script
|
||||
template:
|
||||
src: "{{ role_path }}/templates/docker-compose.yml.j2"
|
||||
dest: "{{ service_dir }}/docker-compose.yml"
|
||||
- name: Copy homeserver.yaml
|
||||
template:
|
||||
src: "{{ role_path }}/templates/homeserver.yaml.j2"
|
||||
dest: "{{ service_dir }}/homeserver.yaml"
|
||||
register: homeserver
|
||||
- name: Copy signing key
|
||||
copy:
|
||||
src: "{{ role_path }}/files/matrix.signing.key"
|
||||
dest: "{{ service_dir }}/matrix.signing.key"
|
||||
- name: Create data directory
|
||||
file:
|
||||
path: "{{ data_dir }}"
|
||||
state: directory
|
||||
- name: Start the Docker Compose
|
||||
docker_compose:
|
||||
project_src: "{{ service_dir }}"
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
restarted: "{{ homeserver.changed }}"
|
Reference in a new issue