File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 210210 apt autoremove -y --purge snapd
211211 when : stage2_nix
212212
213- - name : Install osquery from nixpkgs binary cache
214- become : yes
215- shell : |
216- sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:nixos/nixpkgs/f98ec4f73c762223d62bee706726138cb6ea27cc#osquery"
217- when : stage2_nix
218-
219- - name : Run osquery permission checks
220- become : yes
221- shell : |
222- systemctl start postgresql.service
223- sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && /usr/bin/python3 /tmp/ansible-playbook/ansible/files/permission_check.py {{ '--qemu' if qemu_mode is defined else '' }}"
224- systemctl stop postgresql.service
225- when : stage2_nix
213+ - name : Install osquery from nixpkgs binary cache
214+ become : yes
215+ shell : |
216+ sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install github:nixos/nixpkgs/f98ec4f73c762223d62bee706726138cb6ea27cc#osquery"
217+ when : stage2_nix
218+
219+ - name : Run osquery permission checks
220+ become : yes
221+ shell : |
222+ systemctl start postgresql.service
223+ sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && /usr/bin/python3 /tmp/ansible-playbook/ansible/files/permission_check.py {{ '--qemu' if qemu_mode is defined else '' }}"
224+ systemctl stop postgresql.service
225+ when : stage2_nix
226226
227227 - name : Run fail2ban configuration checks
228228 become : yes
232232 systemctl stop fail2ban.service
233233 when : stage2_nix
234234
235- - name : Remove osquery
236- become : yes
237- shell : |
238- sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile remove osquery"
239- when : stage2_nix
235+ - name : Remove osquery
236+ become : yes
237+ shell : |
238+ sudo -u ubuntu bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile remove osquery"
239+ when : stage2_nix
240240
241241 - name : nix collect garbage
242242 become : yes
You can’t perform that action at this time.
0 commit comments