2019-09-24 09:41:01 +00:00
|
|
|
- hosts: synapse
|
2019-11-13 20:48:50 +00:00
|
|
|
# become: yes
|
|
|
|
pre_tasks:
|
|
|
|
- apt:
|
|
|
|
name: sudo
|
|
|
|
- lineinfile:
|
|
|
|
path: /etc/sudoers
|
|
|
|
line: 'root ALL = (ALL) ALL'
|
2019-09-24 09:41:01 +00:00
|
|
|
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",
|