diff --git a/tasks/main.yaml b/tasks/main.yaml index 70b2001..9cb2c4b 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -41,3 +41,12 @@ obj: "{{ postgresql_database }}" role: "{{ postgresql_username }}" become_user: postgres + +- name: Grant all privs on schema public to user + community.postgresql.postgresql_privs: + db: "{{ postgresql_database }}" + privs: ALL + type: schema + obj: public + role: "{{ postgresql_username }}" + become_user: postgres