Skip to content

Commit

Permalink
updated 7.1.2 based on issue#5
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Jan 21, 2025
1 parent 23a8188 commit 87ee7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/section_7/cis_7.1.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
warn_control_id: '7.1.12'
block:
- name: "7.1.12 | AUDIT | Ensure no files or directories without an owner and a group exist | Get list files or directories"
ansible.builtin.command: find ({{ deb12cis_exclude_unowned_search_path }}) {{ item.mount }} -xdev \( -nouser -o -nogroup \) -not -fstype nfs
ansible.builtin.command: find {{ item.mount }} -xdev -type f {{ deb12cis_exclude_unowned_search_path }} \( -nouser -o -nogroup \) -not -fstype nfs
changed_when: false
failed_when: false
check_mode: false
Expand Down Expand Up @@ -240,7 +240,7 @@
ansible.builtin.file:
path: "{{ item }}"
owner: "{{ deb12cis_unowned_owner }}"
group: "{{ deb12cis_unowned_group }}"
group: "{{ deb12cis_ungrouped_group }}"
with_items:
- "{{ discovered_unowned_files_flatten }}"

Expand Down

0 comments on commit 87ee7aa

Please sign in to comment.