ansible/postgres.yml
2019-10-03 04:04:52 +02:00

22 lines
509 B
YAML

- hosts: synapse
become: yes
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",