fix roles and variables
This commit is contained in:
parent
c665d5cf92
commit
57981fdd96
3
group_vars/all/vars.yml
Normal file
3
group_vars/all/vars.yml
Normal file
@ -0,0 +1,3 @@
|
||||
synapse_dbname: synapse
|
||||
synapse_dbuser: synapse_db
|
||||
synapse_dbpw: synapse_db
|
@ -1 +1 @@
|
||||
vagrant-test ansible_user=vagrant ansible_host="127.0.0.1" ansible_port="2222" ansible_ssh_private_key_file=".vagrant/machines/default/virtualbox/private_key" ansible_become=yes
|
||||
synapse ansible_user=vagrant ansible_host="127.0.0.1" ansible_port="2222" ansible_ssh_private_key_file=".vagrant/machines/default/virtualbox/private_key" ansible_become=yes
|
21
postgres.yml
Normal file
21
postgres.yml
Normal 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",
|
@ -9,9 +9,7 @@
|
||||
matrix_synapse_deployment_method: pip
|
||||
matrix_synapse_baseurl: "https://{{ matrix_server_name }}"
|
||||
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_user: "{{ synapse_dbuser }}"
|
||||
@ -20,7 +18,10 @@
|
||||
matrix_synapse_report_stats: false # Report stats to matrix.org?
|
||||
|
||||
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:
|
||||
# tasks:
|
||||
|
Loading…
Reference in New Issue
Block a user