From e109fc6561dea9041778c367f7766533a610f529 Mon Sep 17 00:00:00 2001 From: samrose Date: Mon, 28 Oct 2024 15:22:39 -0400 Subject: [PATCH] fix: clickhouse deps needs git on path to install and/or build (#1300) Co-authored-by: Sam Rose --- ansible/tasks/stage2-setup-postgres.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ansible/tasks/stage2-setup-postgres.yml b/ansible/tasks/stage2-setup-postgres.yml index e22cbe67b..3b8d9ad02 100644 --- a/ansible/tasks/stage2-setup-postgres.yml +++ b/ansible/tasks/stage2-setup-postgres.yml @@ -3,6 +3,15 @@ # shell: | # sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11" # It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task + +- name: Install Git for Nix package management + become: yes + apt: + name: git + state: present + update_cache: yes + when: stage2_nix + - name: Install Postgres from nix binary cache become: yes shell: | @@ -34,6 +43,14 @@ 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 }}#{{postgresql_version}}_src" when: stage2_nix +- name: Install Git for Nix package management + become: yes + apt: + name: git + state: present + update_cache: yes + when: stage2_nix + - name: Set ownership and permissions for /etc/ssl/private become: yes file: