Skip to content

Commit 4882331

Browse files
committed
fix(setup-postgres): use the short form for the data dir option
1 parent 5d9830a commit 4882331

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,15 @@
265265
become: true
266266
become_user: 'postgres'
267267
ansible.builtin.command:
268-
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"
268+
argv:
269+
- /usr/lib/postgresql/bin/pg_ctl
270+
- -D /var/lib/postgresql/data
271+
- initdb
272+
- -o "--allow-group-access"
273+
- -o "--username=supabase_admin"
274+
- -o "-D /var/lib/postgresql/data"
275+
args:
276+
creates: /var/lib/postgresql/data/PG_VERSION
269277
vars:
270278
ansible_command_timeout: 60
271279
when:
@@ -318,7 +326,18 @@
318326
become: true
319327
become_user: 'postgres'
320328
ansible.builtin.command:
321-
cmd: /usr/lib/postgresql/bin/pg_ctl -D /var/lib/postgresql/data initdb -o "--allow-group-access" -o "--username=supabase_admin" -o "--locale-provider=icu" -o "--encoding=UTF-8" -o "--icu-locale=en_US.UTF-8" -o "--pgdata /var/lib/postgresql/data"
329+
argv:
330+
- /usr/lib/postgresql/bin/pg_ctl
331+
- -D /var/lib/postgresql/data
332+
- initdb
333+
- -o "--allow-group-access"
334+
- -o "--username=supabase_admin"
335+
- -o "--locale-provider=icu"
336+
- -o "--encoding=UTF-8"
337+
- -o "--icu-locale=en_US.UTF-8"
338+
- -o "-D /var/lib/postgresql/data"
339+
args:
340+
creates: /var/lib/postgresql/data/PG_VERSION
322341
environment:
323342
LANG: en_US.UTF-8
324343
LANGUAGE: en_US.UTF-8

0 commit comments

Comments
 (0)