Skip to content

Commit 048d197

Browse files
committed
added fix for #248 thanks to @dlesaffrew
Signed-off-by: Mark Bolwell <[email protected]>
1 parent a0f12f6 commit 048d197

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/section_6/cis_6.1.x.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
owner: root
2222
group: root
2323
mode: '0644'
24+
failed_when: discovered_file_exists.state not in '[ file, absent ]'
25+
register: discovered_file_exists
2426
when:
2527
- ubtu22cis_rule_6_1_2
2628
tags:

0 commit comments

Comments
 (0)