fix roles and variables

This commit is contained in:
J. Doe 2019-09-24 11:41:01 +02:00
parent 2381d54713
commit 04116477b1
4 changed files with 29 additions and 5 deletions

3
group_vars/all/vars.yml Normal file
View File

@ -0,0 +1,3 @@
synapse_dbname: synapse
synapse_dbuser: synapse_db
synapse_dbpw: synapse_db

21
postgres.yml Normal file
View File

@ -0,0 +1,21 @@
- hosts: synapse
tasks:
- pip:
name: psycopg2
state: present
roles:
- role: geerlingguy.postgresql
postgresql_databases:
- name: "{{ synapse_dbname }}"
postgresql_users:
- name: "{{ synapse_dbuser }}"
password: "{{ synapse_dbpw }}"
postgresql_global_config_options:
- option: listen_addresses
value: "*"
# username: "postgres",
# password: "postgres",
# database: "imago_dev",
# hostname: "localhost",

View File

@ -1,7 +1,6 @@
--- ---
- hosts: - hosts:
- postgresql
- synapse - synapse
roles: roles:

View File

@ -9,9 +9,7 @@
matrix_synapse_deployment_method: pip matrix_synapse_deployment_method: pip
matrix_synapse_baseurl: "https://{{ matrix_server_name }}" matrix_synapse_baseurl: "https://{{ matrix_server_name }}"
matrix_synapse_signing_key_path: "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.signing.key" matrix_synapse_signing_key_path: "{{ matrix_synapse_base_path }}/tls/{{ matrix_server_name }}.signing.key"
# Test variables, doesn't seem to be working. Maybe a hostname problem
matrix_synapse_tls_cert: ""
matrix_synapse_tls_key: ""
matrix_synapse_pg_host: localhost matrix_synapse_pg_host: localhost
matrix_synapse_pg_user: "{{ synapse_dbuser }}" matrix_synapse_pg_user: "{{ synapse_dbuser }}"
@ -20,7 +18,10 @@
matrix_synapse_report_stats: false # Report stats to matrix.org? matrix_synapse_report_stats: false # Report stats to matrix.org?
matrix_synapse_extra_config: # no_tls:true disables port 8448 matrix_synapse_extra_config: # no_tls:true disables port 8448
no_tls: false no_tls: true
# If false:
# matrix_synapse_tls_cert: ""
# matrix_synapse_tls_key: ""
# pre_tasks: # pre_tasks:
# tasks: # tasks: