Skip to content

Commit a67d8e1

Browse files
committed
fix: find all instances and remove in this condition for tiemscaledb
1 parent 889dc70 commit a67d8e1

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,21 @@
1010
set_fact:
1111
is_psql_oriole_16: "{{ psql_version == 'psql_oriole-16' }}"
1212

13-
- name: Remove 'timescaledb,' from supautils.conf if oriole-16 build
14-
ansible.builtin.lineinfile:
15-
path: /etc/postgresql/postgresql.conf if oriole-16 build
16-
regexp: 'timescaledb,'
17-
line: ''
18-
state: absent
13+
- name: Remove 'timescaledb,' from postgresql.conf if oriole-16 build
14+
ansible.builtin.command:
15+
cmd: sed -i 's/timescaledb,//g' /etc/postgresql/postgresql.conf
1916
when: is_psql_oriole_16 and stage2_nix
2017
become: yes
21-
- name: Remove 'timescaledb,' from postgresql.conf
22-
ansible.builtin.lineinfile:
23-
path: /etc/postgresql-custom/supautils.conf
24-
regexp: 'timescaledb,'
25-
line: ''
26-
state: absent
18+
- name: Remove 'timescaledb,' from supautils.conf
19+
ansible.builtin.command:
20+
cmd: sed -i 's/timescaledb,//g' /etc/postgresql-custom/supautils.conf
2721
when: is_psql_oriole_16 and stage2_nix
2822
become: yes
2923

3024
- name: Install Postgres from nix binary cache
3125
become: yes
3226
shell: |
3327
sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#{{psql_version}}/bin"
34-
#TODO (samrose) switch pg_prove sourcing to develop branch once PR is merged
3528
when: stage2_nix
3629

3730
- name: Install pg_prove from nix binary cache

0 commit comments

Comments
 (0)