Skip to content

Commit c0a1201

Browse files
committed
fix: install
1 parent 245b301 commit c0a1201

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

ansible/playbook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,12 @@
226226
/bin/bash /tmp/ansible-playbook/ansible/files/cis_baseline_check.sh /tmp/ansible-playbook/audit-specs/baselines
227227
when: stage2_nix
228228

229+
- name: Remove supascan after validation
230+
become: yes
231+
shell: |
232+
sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile remove supascan"
233+
when: stage2_nix
234+
229235
- name: nix collect garbage
230236
become: yes
231237
shell: |

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
loop_control:
107107
loop_var: 'nix_item'
108108

109+
- name: Install supascan for baseline validation
110+
ansible.builtin.shell: |
111+
sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:supabase/postgres/{{ git_commit_sha }}#supascan"
112+
113+
- name: nix collect garbage after supascan install
114+
ansible.builtin.shell:
115+
cmd: sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix-collect-garbage -d"
116+
109117
- name: Set ownership and permissions for file and dirs
110118
ansible.builtin.file:
111119
group: 'postgres'

0 commit comments

Comments
 (0)