mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
lint updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
2491357136
commit
e764ef55d5
5 changed files with 9 additions and 4 deletions
|
|
@ -4,6 +4,10 @@ skip_list:
|
|||
- 'schema'
|
||||
- 'no-changed-when'
|
||||
- 'fqcn-builtins'
|
||||
- 'experimental'
|
||||
- 'name[casing]'
|
||||
- 'name[template]'
|
||||
- 'jinja[spacing]'
|
||||
- '204'
|
||||
- '305'
|
||||
- '303'
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ galaxy_info:
|
|||
company: "MindPoint Group"
|
||||
license: MIT
|
||||
role_name: rhel9_cis
|
||||
namespace: mindpointgroup
|
||||
min_ansible_version: 2.10.0
|
||||
platforms:
|
||||
- name: EL
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
- name: "1.4.1 | PATCH | Ensure bootloader password is set"
|
||||
copy:
|
||||
dest: /boot/grub2/user.cfg
|
||||
content: "GRUB2_PASSWORD={{ rhel9cis_bootloader_password_hash }}"
|
||||
content: "GRUB2_PASSWORD={{ rhel9cis_bootloader_password_hash }}" # noqa template-instead-of-copy
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
|
|
|
|||
|
|
@ -93,8 +93,8 @@
|
|||
regexp: "{{ item.regexp }}"
|
||||
replace: "{{ item.replace }}"
|
||||
loop:
|
||||
- { regexp: '(UMASK\s+)0[012][0-6]', replace: '\1 027' }
|
||||
- { regexp: '(USERGROUPS_ENAB\s+)yes', replace: '\1 no' }
|
||||
- { regexp: '(UMASK\s+)0[012][0-6]', replace: '\1 027' }
|
||||
- { regexp: '(USERGROUPS_ENAB\s+)yes', replace: '\1 no' }
|
||||
|
||||
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/bashrc"
|
||||
replace:
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
block:
|
||||
- name: "6.1.1 | AUDIT | Audit system file permissions | Add file discrepancy list to system"
|
||||
copy:
|
||||
dest: "{{ rhel9cis_rpm_audit_file }}"
|
||||
dest: "{{ rhel9cis_rpm_audit_file }}" # noqa template-instead-of-copy
|
||||
content: "{{ rhel9cis_6_1_1_packages_rpm.stdout }}"
|
||||
owner: root
|
||||
group: root
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue