mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-26 15:13:05 +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:
|
block:
|
||||||
- name: "1.4.2 | PATCH | Ensure permissions on bootloader config are configured"
|
- name: "1.4.2 | PATCH | Ensure permissions on bootloader config are configured"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /boot/grub2/grub.cfg
|
path: "/boot/grub2/{{ item.path }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: "{{ item.mode }}"
|
||||||
loop:
|
loop:
|
||||||
- grub.cfg
|
- { path: 'grub.cfg', mode: '0700' }
|
||||||
- grubenv
|
- { path: 'grubenv', mode: '0600' }
|
||||||
- user.cfg
|
- { path: 'user.cfg', mode: '0600' }
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_1_4_2
|
- rhel9cis_rule_1_4_2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue