Skip to content

Commit 3b56c40

Browse files
committed
chore: Add wal-g nix garbage collection
- Executes `nix-collect-garbage -d` after installing wal-g via nix profile. - This ensures cleanup of the Nix store, freeing up disk space.
1 parent 0f0eecb commit 3b56c40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ansible/tasks/setup-wal-g.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
cmd: sudo -u wal-g bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#wal-g-2"
3434
become: true
3535

36+
- name: nix collect garbage
37+
ansible.builtin.shell:
38+
cmd: sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d"
39+
become: true
40+
3641
- name: Create symlink to make wal-g-v2 the default wal-g
3742
ansible.builtin.file:
3843
dest: '/usr/local/bin/wal-g'

0 commit comments

Comments
 (0)