Skip to content

Commit e0708b6

Browse files
committed
start / stop postgresql.service when doing osquery permission checks
1 parent 393ca37 commit e0708b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ansible/playbook.yml

+2
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@
213213
- name: Run osquery permission checks
214214
become: yes
215215
shell: |
216+
systemctl start postgresql.service
216217
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 '' }}"
218+
systemctl stop postgresql.service
217219
when: stage2_nix
218220

219221
- name: Remove osquery

0 commit comments

Comments
 (0)