Skip to content

Commit

Permalink
fix: find all instances and remove in this condition for tiemscaledb
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Oct 18, 2024
1 parent 889dc70 commit a67d8e1
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions ansible/tasks/stage2-setup-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,21 @@
set_fact:
is_psql_oriole_16: "{{ psql_version == 'psql_oriole-16' }}"

- name: Remove 'timescaledb,' from supautils.conf if oriole-16 build
ansible.builtin.lineinfile:
path: /etc/postgresql/postgresql.conf if oriole-16 build
regexp: 'timescaledb,'
line: ''
state: absent
- name: Remove 'timescaledb,' from postgresql.conf if oriole-16 build
ansible.builtin.command:
cmd: sed -i 's/timescaledb,//g' /etc/postgresql/postgresql.conf
when: is_psql_oriole_16 and stage2_nix
become: yes
- name: Remove 'timescaledb,' from postgresql.conf
ansible.builtin.lineinfile:
path: /etc/postgresql-custom/supautils.conf
regexp: 'timescaledb,'
line: ''
state: absent
- name: Remove 'timescaledb,' from supautils.conf
ansible.builtin.command:
cmd: sed -i 's/timescaledb,//g' /etc/postgresql-custom/supautils.conf
when: is_psql_oriole_16 and stage2_nix
become: yes

- name: Install Postgres from nix binary cache
become: yes
shell: |
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"
#TODO (samrose) switch pg_prove sourcing to develop branch once PR is merged
when: stage2_nix

- name: Install pg_prove from nix binary cache
Expand Down

0 comments on commit a67d8e1

Please sign in to comment.