ansible/matrix.yml

42 lines
1.2 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- 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
matrix_bind_address: "192.168.42.4"
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"
matrix_synapse_report_stats: false
matrix_synapse_config_path: "/etc/matrix-synapse/homeserver.yaml"
# to implement
# matrix_no_tls: true
tasks:
# - docker_volume:
# name: synapse-data
- template:
src: templates/synapse_homeserver.yaml.j2
dest: {{ matrix_synapse_config_path }}
- template:
src: templates/docker-compose-matrix.yml.j2
dest: /etc/docker/docker-compose.yml
- name: Create and start matrix services
docker_compose:
project_src: matrix
register: output
# uploads_path: "/var/lib/matrix-synapse/uploads"
# media_store_path: "/var/lib/matrix-synapse/media"