Skip to content

Commit 1cc6d7f

Browse files
committed
fix: it is required to run this at the end of AMI build
to remove deps in the store not used by the installed pkg
1 parent 570dbb3 commit 1cc6d7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ansible/playbook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,9 @@
206206
shell: |
207207
sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile remove osquery"
208208
when: stage2_nix
209+
210+
- name: nix collect garbage
211+
become: yes
212+
shell: |
213+
sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d"
214+
when: stage2_nix

0 commit comments

Comments
 (0)