Skip to content

Commit ab22ce1

Browse files
committed
fix(setup-postgres): s/postgresql_major/postgresql_major_version/g
1 parent 2505d46 commit ab22ce1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- name: Postgres - install server
2525
ansible.builtin.apt:
2626
install_recommends: false
27-
name: "postgresql-{{ postgresql_major }}={{ postgresql_release }}-1.pgdg24.04+1"
27+
name: "postgresql-{{ postgresql_major_version }}={{ postgresql_release }}-1.pgdg24.04+1"
2828

2929
- name: Postgres - remove PPA
3030
ansible.builtin.apt_repository:
@@ -204,7 +204,7 @@
204204
become: true
205205
become_user: 'postgres'
206206
ansible.builtin.command:
207-
cmd: /usr/lib/postgresql/{{ postgresql_major }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin"
207+
cmd: /usr/lib/postgresql/{{ postgresql_major_version }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin"
208208
vars:
209209
ansible_command_timeout: 60
210210
when:
@@ -232,7 +232,7 @@
232232
become: true
233233
become_user: 'postgres'
234234
ansible.builtin.command:
235-
cmd: /usr/lib/postgresql/{{ postgresql_major }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin
235+
cmd: /usr/lib/postgresql/{{ postgresql_major_version }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin
236236
environment:
237237
LANG: en_US.UTF-8
238238
LANGUAGE: en_US.UTF-8
@@ -249,7 +249,7 @@
249249
become: true
250250
become_user: 'postgres'
251251
ansible.builtin.command:
252-
cmd: /usr/lib/postgresql/{{ postgresql_major }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin --locale-provider=icu --encoding=UTF-8 --icu-locale=en_US.UTF-8
252+
cmd: /usr/lib/postgresql/{{ postgresql_major_version }}/bin/initdb -D /var/lib/postgresql/data --allow-group-access --username=supabase_admin --locale-provider=icu --encoding=UTF-8 --icu-locale=en_US.UTF-8
253253
environment:
254254
LANG: en_US.UTF-8
255255
LANGUAGE: en_US.UTF-8

0 commit comments

Comments
 (0)