Skip to content

Commit 1d6c728

Browse files
committed
fix: ansible args
1 parent 18d9116 commit 1d6c728

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
- name: Initialize the database stage2_nix (non-orioledb)
214214
become: yes
215215
become_user: postgres
216-
shell: source /var/lib/postgresql/.bashrc && /usr/lib/postgresql/bin/pg_ctl -D /var/lib/postgresql/data initdb -o "--allow-group-access" -o "--username=supabase_admin"
216+
shell: source /var/lib/postgresql/.bashrc && initdb -D /var/lib/postgresql/data -o "--allow-group-access" -o "--username=supabase_admin"
217217
args:
218218
executable: /bin/bash
219219
environment:
@@ -229,15 +229,17 @@
229229
- name: Initialize the database stage2_nix (orioledb)
230230
become: yes
231231
become_user: postgres
232-
cmd: >
233-
source /var/lib/postgresql/.bashrc && /usr/lib/postgresql/bin/pg_ctl -D /var/lib/postgresql/data initdb \
234-
-o "--allow-group-access" \
235-
-o "--username=supabase_admin" \
236-
-o "--locale-provider=icu" \
237-
-o "--encoding=UTF-8" \
238-
-o "--icu-locale=en_US.UTF-8" \
239-
-o "--lc-collate=en-US-x-icu" \
240-
-o "--lc-ctype=en-US-x-icu"
232+
shell: >
233+
source /var/lib/postgresql/.bashrc && initdb -D /var/lib/postgresql/data
234+
--allow-group-access
235+
--username=supabase_admin
236+
--locale-provider=icu
237+
--encoding=UTF-8
238+
--icu-locale=en_US.UTF-8
239+
--lc-collate=en-US-x-icu
240+
--lc-ctype=en-US-x-icu
241+
args:
242+
executable: /bin/bash
241243
environment:
242244
LANG: en_US.UTF-8
243245
LANGUAGE: en_US.UTF-8

0 commit comments

Comments
 (0)