fix conditional for snap/squashfs

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2025-01-10 12:39:13 +00:00
parent 113b32018f
commit 18152bc17d
No known key found for this signature in database
GPG Key ID: 997FF7FE93AEB5B9
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
changed_when: false
- name: "PRELIM | AUDIT | Register if snap being used"
when: ubtu24cis_rule_1_1_1_6
when: ubtu24cis_rule_1_1_1_7
tags: always
ansible.builtin.shell: df -h | grep -wc "/snap"
changed_when: false
@ -15,7 +15,7 @@
register: prelim_snap_pkg_mgr
- name: "PRELIM | AUDIT | Register if squashfs is built into the kernel"
when: ubtu24cis_rule_1_1_1_6
when: ubtu24cis_rule_1_1_1_7
tags: always
ansible.builtin.shell: cat /lib/modules/$(uname -r)/modules.builtin | grep -c "squashfs"
changed_when: false