forked from ansible-lockdown/RHEL9-CIS
7.1.10 extended in case file absent
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
12be5388ff
commit
ed1bc1c074
1 changed files with 2 additions and 0 deletions
|
|
@ -169,6 +169,8 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 'u-x,go-wx'
|
mode: 'u-x,go-wx'
|
||||||
|
failed_when: discovered_file_exists.state not in '[ file, absent ]'
|
||||||
|
register: discovered_file_exists
|
||||||
|
|
||||||
- name: "7.1.11 | PATCH | Ensure world writable files and directories are secured"
|
- name: "7.1.11 | PATCH | Ensure world writable files and directories are secured"
|
||||||
when:
|
when:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue