mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
fixed loop
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
a2d074a343
commit
c9b97bec6e
1 changed files with 5 additions and 5 deletions
|
|
@ -22,14 +22,14 @@
|
|||
block:
|
||||
- name: "1.4.2 | PATCH | Ensure permissions on bootloader config are configured"
|
||||
ansible.builtin.file:
|
||||
path: /boot/grub2/grub.cfg
|
||||
path: "/boot/grub2/{{ item.path }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
mode: "{{ item.mode }}"
|
||||
loop:
|
||||
- grub.cfg
|
||||
- grubenv
|
||||
- user.cfg
|
||||
- { path: 'grub.cfg', mode: '0700' }
|
||||
- { path: 'grubenv', mode: '0600' }
|
||||
- { path: 'user.cfg', mode: '0600' }
|
||||
|
||||
when:
|
||||
- rhel9cis_rule_1_4_2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue