Skip to content

Commit c8f5b9f

Browse files
committed
fix(setup-postgres): switch from cmd to argv format to see if that gets rid of the arg errors
1 parent 17a7f54 commit c8f5b9f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,15 @@
293293
become: true
294294
become_user: 'postgres'
295295
ansible.builtin.command:
296-
cmd: /usr/lib/postgresql/bin/pg_ctl -D /var/lib/postgresql/data initdb -o "--allow-group-access" -o "--username=supabase_admin" -o "--pgdata /var/lib/postgresql/data"
296+
argv:
297+
- /usr/lib/postgresql/bin/pg_ctl
298+
- -D /var/lib/postgresql/data
299+
- initdb
300+
- -o "--allow-group-access"
301+
- -o "--username=supabase_admin"
302+
- -o "--pgdata /var/lib/postgresql/data"
303+
args:
304+
creates: /var/lib/postgresql/data/PG_VERSION
297305
environment:
298306
LANG: en_US.UTF-8
299307
LANGUAGE: en_US.UTF-8

0 commit comments

Comments
 (0)