You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-4
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ Refer to [Contributing Guide](./CONTRIBUTING.rst)
53
53
54
54
This role **will make changes to the system** which may have unintended consequences. This is not an auditing tool but rather a remediation tool to be used after an audit has been conducted.
55
55
56
-
Check Mode is not supported! The role will complete in check mode without errors, but it is not supported and should be used with caution. The RHEL8-CIS-Audit role or a compliance scanner should be used for compliance checking over check mode.
56
+
Check Mode is not supported! The role will complete in check mode without errors, but it is not supported and should be used with caution. The RHEL9-CIS-Audit role or a compliance scanner should be used for compliance checking over check mode.
57
57
58
58
This role was developed against a clean install of the Operating System. If you are implementing to an existing system please review this role for any site specific changes that are needed.
59
59
@@ -128,11 +128,9 @@ os_check: false
128
128
**Technical Dependencies:**
129
129
130
130
- Python3
131
-
- Ansible 2.10+
131
+
- Ansible 2.12+
132
132
- python-def (should be included in RHEL 9)
133
133
- libselinux-python
134
-
- pip packages
135
-
- jmespath
136
134
- collections found in collections/requirements.yml
137
135
138
136
pre-commit is available if installed on your host for pull request testing.
Copy file name to clipboardexpand all lines: tasks/section_1/cis_1.1.2.x.yml
+1-1
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
src: "{{ item.device }}"
33
33
fstype: "{{ item.fstype }}"
34
34
state: present
35
-
opts: defaults,{% if rhel9cis_rule_1_1_2_2 %}nodev,{% endif %}{% if rhel9cis_rule_1_1_2_3 %}noexec,{% endif %}{% if rhel9cis_rule_1_1_2_4 %}nosuid{% endif %}
35
+
opts: "{{ item.options }}{% if ('nodev' not in item.options and rhel9cis_rule_1_1_2_2) %},nodev{% endif %}{% if ('noexec' not in item.options and rhel9cis_rule_1_1_2_3) %},noexec{% endif %}{% if ('nosuid' not in item.options and rhel9cis_rule_1_1_2_4) %},nosuid{% endif %}"
Copy file name to clipboardexpand all lines: tasks/section_1/cis_1.1.3.x.yml
+1-2
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
src: "{{ item.device }}"
32
32
fstype: "{{ item.fstype }}"
33
33
state: present
34
-
opts: defaults,{% if rhel9cis_rule_1_1_3_2 %}nodev,{% endif %}{% if rhel9cis_rule_1_1_3_3 %}nosuid{% endif %}
34
+
opts: "{{ item.options }}{% if ('nodev' not in item.options and rhel9cis_rule_1_1_3_2) %},nodev{% endif %}{% if ('nosuid' not in item.options and rhel9cis_rule_1_1_3_3) %},nosuid{% endif %}"
Copy file name to clipboardexpand all lines: tasks/section_1/cis_1.1.4.x.yml
+1-2
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@
33
33
src: "{{ item.device }}"
34
34
fstype: "{{ item.fstype }}"
35
35
state: present
36
-
opts: defaults,{% if rhel9cis_rule_1_1_4_2 %}noexec,{% endif %}{% if rhel9cis_rule_1_1_4_3 %}nosuid,{% endif %}{% if rhel9cis_rule_1_1_4_4 %}nodev{% endif %}
36
+
opts: "{{ item.options }}{% if ('noexec' not in item.options and rhel9cis_rule_1_1_4_2) %},noexec{% endif %}{% if ('nosuid' not in item.options and rhel9cis_rule_1_1_4_3) %},nosuid{% endif %}{% if ('nodev' not in item.options and rhel9cis_rule_1_1_4_4) %},nodev{% endif %}"
Copy file name to clipboardexpand all lines: tasks/section_1/cis_1.1.5.x.yml
+1-3
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@
22
22
- audit
23
23
- mounts
24
24
- rule_1.1.5.1
25
-
- skip_ansible_lint
26
25
27
26
- name: |
28
27
"1.1.5.2 | PATCH | Ensure nodev option set on /var/log partition"
@@ -33,7 +32,7 @@
33
32
src: "{{ item.device }}"
34
33
fstype: "{{ item.fstype }}"
35
34
state: present
36
-
opts: defaults,{% if rhel9cis_rule_1_1_5_2 %}nodev,{% endif %}{% if rhel9cis_rule_1_1_5_3 %}noexec,{% endif %}{% if rhel9cis_rule_1_1_5_4 %}nosuid{% endif %}
35
+
opts: "{{ item.options }}{% if ('nodev' not in item.options and rhel9cis_rule_1_1_5_2) %},nodev{% endif %}{% if ('noexec' not in item.options and rhel9cis_rule_1_1_5_3) %},noexec{% endif %}{% if ('nosuid' not in item.options and rhel9cis_rule_1_1_5_4) %},nosuid{% endif %}"
Copy file name to clipboardexpand all lines: tasks/section_1/cis_1.1.6.x.yml
+1-2
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
src: "{{ item.device }}"
33
33
fstype: "{{ item.fstype }}"
34
34
state: present
35
-
opts: defaults,{% if rhel9cis_rule_1_1_6_2 %}noexec,{% endif %}{% if rhel9cis_rule_1_1_6_3 %}nodev,{% endif %}{% if rhel9cis_rule_1_1_6_4 %}nosuid{% endif %}
35
+
opts: "{{ item.options }}{% if ('noexec' not in item.options and rhel9cis_rule_1_1_6_2) %},noexec{% endif %}{% if ('nodev' not in item.options and rhel9cis_rule_1_1_6_3) %},nodev{% endif %}{% if ('nosuid' not in item.options and rhel9cis_rule_1_1_6_4) %},nosuid{% endif %}"
Copy file name to clipboardexpand all lines: tasks/section_1/cis_1.1.7.x.yml
+1-3
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@
22
22
- audit
23
23
- mounts
24
24
- rule_1.1.7.1
25
-
- skip_ansible_lint
26
25
27
26
- name: |
28
27
"1.1.7.2 | PATCH | Ensure nodev option set on /home partition
@@ -32,7 +31,7 @@
32
31
src: "{{ item.device }}"
33
32
fstype: "{{ item.fstype }}"
34
33
state: present
35
-
opts: defaults,{% if rhel9cis_rule_1_1_7_2 %}nodev,{% endif %}{% if rhel9cis_rule_1_1_7_3 %}nosuid{% endif %}
34
+
opts: "{{ item.options }}{% if ('nodev' not in item.options and rhel9cis_rule_1_1_7_2) %},nodev{% endif %}{% if ('nosuid' not in item.options and rhel9cis_rule_1_1_7_3) %},nosuid{% endif %}"
0 commit comments