2019-11-21 16:19:03 +00:00
|
|
|
|
---
|
|
|
|
|
- hosts: synapse
|
|
|
|
|
# todo: create user for synapse
|
|
|
|
|
vars:
|
|
|
|
|
matrix_synapse_version: "v1.5.1-py3"
|
|
|
|
|
# matrix_synapse_version: "v1.5.1"
|
|
|
|
|
matrix_server_name: matrix-sonic-beta.local
|
2019-11-27 19:59:32 +00:00
|
|
|
|
matrix_bind_address: "192.168.42.4"
|
2019-11-27 19:57:14 +00:00
|
|
|
|
|
|
|
|
|
matrix_synapse_pg_host: synapse-postgres # does it need to be an IP?
|
|
|
|
|
matrix_synapse_db_name: psycopg2
|
|
|
|
|
matrix_synapse_pg_user: "synapse"
|
|
|
|
|
matrix_synapse_pg_pass: "pomme"
|
|
|
|
|
matrix_synapse_pg_db: "synapse"
|
|
|
|
|
matrix_registration_shared_secret: "xxxxx"
|
2019-11-21 16:19:03 +00:00
|
|
|
|
matrix_synapse_report_stats: false
|
2019-11-27 19:57:14 +00:00
|
|
|
|
matrix_synapse_config_path: "/etc/matrix-synapse/homeserver.yaml"
|
2019-11-21 16:19:03 +00:00
|
|
|
|
|
2019-11-27 19:57:14 +00:00
|
|
|
|
# to implement
|
|
|
|
|
# matrix_no_tls: true
|
2019-11-21 16:19:03 +00:00
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
# - docker_volume:
|
|
|
|
|
# name: synapse-data
|
|
|
|
|
|
|
|
|
|
- template:
|
|
|
|
|
src: templates/synapse_homeserver.yaml.j2
|
2019-11-27 19:57:14 +00:00
|
|
|
|
dest: {{ matrix_synapse_config_path }}
|
2019-11-21 16:19:03 +00:00
|
|
|
|
|
|
|
|
|
- template:
|
|
|
|
|
src: templates/docker-compose-matrix.yml.j2
|
2019-11-27 19:57:14 +00:00
|
|
|
|
dest: /etc/docker/docker-compose.yml
|
2019-11-21 16:19:03 +00:00
|
|
|
|
|
|
|
|
|
- name: Create and start matrix services
|
|
|
|
|
docker_compose:
|
|
|
|
|
project_src: matrix
|
2019-11-27 19:57:14 +00:00
|
|
|
|
register: output
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# uploads_path: "/var/lib/matrix-synapse/uploads"
|
|
|
|
|
# media_store_path: "/var/lib/matrix-synapse/media"
|