mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
65 lines
2.1 KiB
YAML
65 lines
2.1 KiB
YAML
---
|
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
vars:
|
|
domain: "{{synapse_domain}}"
|
|
http_port: "{{synapse_http_port}}"
|
|
|
|
- name: create database in central Postgres
|
|
include_role:
|
|
name: docker-postgres
|
|
when: enable_central_database | bool
|
|
|
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
vars:
|
|
domain: "{{element_domain}}"
|
|
http_port: "{{element_http_port}}"
|
|
|
|
- name: "create {{docker_compose_instance_directory}}"
|
|
file:
|
|
path: "{{docker_compose_instance_directory}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
#- name: "create {{docker_compose_instance_directory}}mautrix_whatsapp"
|
|
# file:
|
|
# path: "{{docker_compose_instance_directory}}mautrix_whatsapp"
|
|
# state: directory
|
|
# mode: 0755
|
|
#
|
|
#- name: add whatsapp-bridge-config.yml
|
|
# template:
|
|
# src: "whatsapp-bridge-config.yml.j2"
|
|
# dest: "{{docker_compose_instance_directory}}mautrix_whatsapp/config.yml"
|
|
# notify: docker compose project setup
|
|
|
|
- name: add element-config.json
|
|
template:
|
|
src: "element-config.json.j2"
|
|
dest: "{{docker_compose_instance_directory}}element-config.json"
|
|
notify: docker compose project setup
|
|
|
|
- name: add homeserver.yaml
|
|
template:
|
|
src: "homeserver.yaml.j2"
|
|
dest: "{{docker_compose_instance_directory}}homeserver.yaml"
|
|
notify: docker compose project setup
|
|
|
|
- name: add log.config
|
|
template:
|
|
src: "log.config.j2"
|
|
dest: "{{docker_compose_instance_directory}}{{synapse_domain}}.log.config"
|
|
notify: docker compose project setup
|
|
|
|
# https://github.com/matrix-org/synapse/issues/6303
|
|
- name: set correct folder permissions
|
|
command:
|
|
cmd: "docker run --rm --mount type=volume,src=matrix_synapse_data,dst=/data -e SYNAPSE_SERVER_NAME={{synapse_domain}} -e SYNAPSE_REPORT_STATS=no --entrypoint /bin/sh matrixdotorg/synapse:latest -c 'chown -vR 991:991 /data'"
|
|
|
|
- name: add docker-compose.yml
|
|
template:
|
|
src: "docker-compose.yml.j2"
|
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
|
notify: docker compose project setup
|