Fix: database owner
This commit is contained in:
1 parent
442e5f3d69
commit
44414cb743
1 file changed
+1
-4
@@ -12,6 +12,7 @@
|
||||
- name: Create database
|
||||
community.postgresql.postgresql_db:
|
||||
name: "{{ database }}"
|
||||
owner: "{{ username }}"
|
||||
- name: Create user
|
||||
community.postgresql.postgresql_user:
|
||||
db: "{{ database }}"
|
||||
@@ -19,10 +20,6 @@
|
||||
password: "{{ password }}"
|
||||
environment:
|
||||
PGOPTIONS: "-c password_encryption=scram-sha-256"
|
||||
- name: Configure schema
|
||||
community.postgresql.postgresql_schema:
|
||||
name: "{{ schema }}"
|
||||
owner: "{{ username }}"
|
||||
- name: Configure privileges
|
||||
community.postgresql.postgresql_privs:
|
||||
db: "{{ database }}"
|
||||
|
||||
Reference in new issue
Block a user