50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
|
|
[
|
||
|
|
{
|
||
|
|
"name": "packages",
|
||
|
|
"become": true,
|
||
|
|
"ansible.builtin.apt": {
|
||
|
|
"update_cache": true,
|
||
|
|
"pkg": [
|
||
|
|
"acl",
|
||
|
|
"python3-psycopg2"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "user",
|
||
|
|
"become": true,
|
||
|
|
"become_user": "postgres",
|
||
|
|
"community.postgresql.postgresql_user": {
|
||
|
|
"state": "present",
|
||
|
|
"name": "{{cfg_postgresql_for_mautrix_signal.username}}",
|
||
|
|
"password": "{{cfg_postgresql_for_mautrix_signal.password}}"
|
||
|
|
},
|
||
|
|
"environment": {
|
||
|
|
"PGOPTIONS": "-c password_encryption=scram-sha-256"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "schema",
|
||
|
|
"become": true,
|
||
|
|
"become_user": "postgres",
|
||
|
|
"community.postgresql.postgresql_db": {
|
||
|
|
"state": "present",
|
||
|
|
"name": "{{cfg_postgresql_for_mautrix_signal.schema}}",
|
||
|
|
"owner": "{{cfg_postgresql_for_mautrix_signal.username}}"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "rights",
|
||
|
|
"become": true,
|
||
|
|
"become_user": "postgres",
|
||
|
|
"community.postgresql.postgresql_privs": {
|
||
|
|
"state": "present",
|
||
|
|
"login_db": "{{cfg_postgresql_for_mautrix_signal.schema}}",
|
||
|
|
"objs": "ALL_IN_SCHEMA",
|
||
|
|
"roles": "{{cfg_postgresql_for_mautrix_signal.username}}",
|
||
|
|
"privs": "ALL",
|
||
|
|
"grant_option": true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|