File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 4242 enabled : true
4343 become : true
4444
45- - name : Setup postgresql databases
46- community.postgresql.postgresql_db :
47- name : " {{ item.database }}"
48- with_items : " {{ postgres_users }}"
49- become : true
50- become_user : postgres
51-
5245- name : Setup postgresql users
5346 community.postgresql.postgresql_user :
54- db : " {{ item.database }}"
5547 user : " {{ item.username }}"
5648 with_items : " {{ postgres_users }}"
5749 become : true
5850 become_user : postgres
5951
60- - name : Grant users permissions to create tables in the schema `public`
61- community.postgresql.postgresql_privs :
62- db : " {{ item.database }}"
63- privs : CREATE
64- type : schema
65- objs : public
66- role : " {{ item.username }}"
52+ - name : Setup postgresql databases
53+ community.postgresql.postgresql_db :
54+ name : " {{ item.database }}"
55+ owner : " {{ item.username }}"
6756 with_items : " {{ postgres_users }}"
6857 become : true
6958 become_user : postgres
You can’t perform that action at this time.
0 commit comments