Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da5a477

Browse files
committed
Packer solution for readonly user supabase#11
1 parent 7e6f809 commit da5a477

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ansible/playbook.yml

+17
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@
1313
tasks:
1414
- include_tasks: tasks/setup-extensions.yml
1515

16+
- name: Dump SQL script
17+
copy:
18+
dest: /tmp/00-schema.sql
19+
src: ../docker/mnt/00-schema.sql
20+
21+
- name: Set up readonly user for the public schema
22+
become: yes
23+
become_user: postgres
24+
postgresql_query:
25+
db: postgres
26+
path_to_script: /tmp/00-schema.sql
27+
28+
- name: Delete SQL script
29+
file:
30+
path: /tmp/00-schema.sql
31+
state: absent
32+
1633
- name: Set up password for superadmin postgres
1734
become: yes
1835
become_user: postgres

0 commit comments

Comments
 (0)