mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
Fix version check to not be a simple string compare
Signed-off-by: Adam Lewandowski <adam.lewandowski@plxis.com>
This commit is contained in:
parent
e93d1ca735
commit
d687cd8b44
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@
|
|||
- "system-auth"
|
||||
- "password-auth"
|
||||
when:
|
||||
- ansible_distribution_version <= "8.1"
|
||||
- ansible_distribution_version is version("8.1", "<=")
|
||||
- rhel9cis_rule_5_5_2
|
||||
|
||||
- name: "5.5.2 | PATCH | Ensure system accounts are secured | RHEL8.2+ "
|
||||
|
|
@ -66,7 +66,7 @@
|
|||
- { regexp: '^\s*deny\s*=\s*[1-5]\b', line: 'deny = 5' }
|
||||
- { regexp: '^\s*unlock_time\s*=\s*(0|9[0-9][0-9]|[1-9][0-9][0-9][0-9]+)\b', line: 'unlock_time = 900' }
|
||||
when:
|
||||
- ansible_distribution_version >= "8.2"
|
||||
- ansible_distribution_version is version("8.2", ">=")
|
||||
- rhel9cis_rule_5_5_2
|
||||
|
||||
- name: "5.5.3 | PATCH | Ensure password reuse is limited"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue