mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 07:23:07 +00:00
Updated mountpoint vars correctly
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
7875e1f6b5
commit
d850fc5875
8 changed files with 58 additions and 58 deletions
|
|
@ -2,7 +2,7 @@
|
|||
- name: "1.1.2.3.1 | PATCH | Ensure /home is a separate partition"
|
||||
when:
|
||||
- rhel9cis_rule_1_1_2_3_1
|
||||
- required_mount not in mount_names
|
||||
- required_mount not in prelim_mount_names
|
||||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
- name: "1.1.2.3.2 | PATCH | Ensure nodev option set on /home partition"
|
||||
when:
|
||||
- mount_point_fs_and_options[mount_point] is defined
|
||||
- prelim_mount_point_fs_and_options[mount_point] is defined
|
||||
- rhel9cis_rule_1_1_2_3_2
|
||||
tags:
|
||||
- level1-server
|
||||
|
|
@ -48,14 +48,14 @@
|
|||
notify: &mount_option_notify
|
||||
- "Remount {{ mount_point }}"
|
||||
ansible.builtin.set_fact: &mount_option_set_fact
|
||||
mount_point_fs_and_options: |
|
||||
{{ mount_point_fs_and_options | combine({mount_point: {'options': (mount_point_fs_and_options[mount_point]['options'] + [required_option])}}, recursive=True) }}
|
||||
prelim_mount_point_fs_and_options: |
|
||||
{{ prelim_mount_point_fs_and_options | combine({mount_point: {'options': (prelim_mount_point_fs_and_options[mount_point]['options'] + [required_option])}}, recursive=True) }}
|
||||
changed_when: &mount_option_changed_when
|
||||
- required_option not in mount_point_fs_and_options[mount_point]['original_options']
|
||||
- required_option not in prelim_mount_point_fs_and_options[mount_point]['original_options']
|
||||
|
||||
- name: "1.1.2.3.3 | PATCH | Ensure nosuid option set on /home partition"
|
||||
when:
|
||||
- mount_point_fs_and_options[mount_point] is defined
|
||||
- prelim_mount_point_fs_and_options[mount_point] is defined
|
||||
- rhel9cis_rule_1_1_2_3_3
|
||||
tags:
|
||||
- level1-server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue