forked from ansible-lockdown/RHEL9-CIS
updated var naming on 5.4.2.5
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
7428f269e7
commit
f0fb701122
1 changed files with 2 additions and 2 deletions
|
|
@ -139,7 +139,7 @@
|
|||
ansible.builtin.stat:
|
||||
path: "{{ item }}"
|
||||
loop: "{{ discovered_root_paths_split.stdout_lines }}"
|
||||
register: paths_stat
|
||||
register: discovered_root_paths_stat
|
||||
|
||||
- name: "5.4.2.5 | AUDIT | Ensure root PATH Integrity | Create dirs for some paths that are not dirs"
|
||||
ansible.builtin.file:
|
||||
|
|
@ -148,7 +148,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 'go-w'
|
||||
loop: "{{ paths_stat.results }}"
|
||||
loop: "{{ discovered_root_paths_stat.results }}"
|
||||
when: not item.stat.exists
|
||||
|
||||
- name: "5.4.2.5 | AUDIT | Ensure root PATH Integrity | Check for empty dirs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue