WiP codeberg matrix server scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
689 B

---
- hosts: [ matrix_server ]
# collections:
#- community.postgresql
tasks:
- name: Install python-psycopg2
apt:
name: python3-psycopg2
state: present
- name: Create synapse db role
become: yes
become_user: postgres
community.postgresql.postgresql_user:
db: postgres
name: synapse
password: "{{ matrix_synapse_pg_pass }}"
environment:
PGOPTIONS: "-c password_encryption=scram-sha-256"
- name: Create synapse db
become: yes
become_user: postgres
community.postgresql.postgresql_db:
name: synapse
owner: synapse
encoding: UTF-8
lc_collate: C
lc_ctype: C
template: template0