62 lines
1.2 KiB
JSON
62 lines
1.2 KiB
JSON
![]() |
[
|
||
|
{
|
||
|
"name": "packages",
|
||
|
"become": true,
|
||
|
"ansible.builtin.apt": {
|
||
|
"pkg": [
|
||
|
"acl"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "user",
|
||
|
"become": true,
|
||
|
"become_user": "postgres",
|
||
|
"community.postgresql.postgresql_user": {
|
||
|
"state": "present",
|
||
|
"name": "{{var_postgresql_for_hydra_username}}",
|
||
|
"password": "{{var_postgresql_for_hydra_password}}"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "schema",
|
||
|
"become": true,
|
||
|
"become_user": "postgres",
|
||
|
"community.postgresql.postgresql_db": {
|
||
|
"state": "present",
|
||
|
"name": "{{var_postgresql_for_hydra_schema}}",
|
||
|
"owner": "{{var_postgresql_for_hydra_username}}",
|
||
|
"encoding": "UTF-8"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "rights",
|
||
|
"become": true,
|
||
|
"become_user": "postgres",
|
||
|
"community.postgresql.postgresql_privs": {
|
||
|
"state": "present",
|
||
|
"db": "{{var_postgresql_for_hydra_schema}}",
|
||
|
"objs": "ALL_IN_SCHEMA",
|
||
|
"roles": "{{var_postgresql_for_hydra_username}}",
|
||
|
"privs": "ALL",
|
||
|
"grant_option": true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "start script | prepare directory",
|
||
|
"become": true,
|
||
|
"ansible.builtin.file": {
|
||
|
"state": "directory",
|
||
|
"path": "/etc/hydra"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "start script | emplace",
|
||
|
"become": true,
|
||
|
"ansible.builtin.template": {
|
||
|
"src": "dsn.j2",
|
||
|
"dest": "/etc/hydra/dsn"
|
||
|
}
|
||
|
}
|
||
|
]
|