mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-25 22:53:06 +00:00
improved tests based upon #190 thanks to @ipruteanu-sie
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
b279a9fb80
commit
bd7c4e3da2
2 changed files with 9 additions and 4 deletions
|
|
@ -14,8 +14,10 @@
|
|||
- item.id != "halt"
|
||||
- item.id != "nfsnobody"
|
||||
- item.uid < min_int_uid | int
|
||||
- item.shell != " /bin/false"
|
||||
- item.shell != " /usr/sbin/nologin"
|
||||
- item.shell != "/bin/false"
|
||||
- item.shell != "/usr/sbin/nologin"
|
||||
- item.shell != "/sbin/nologin"
|
||||
- item.shell != "/dev/null"
|
||||
loop_control:
|
||||
label: "{{ item.id }}"
|
||||
|
||||
|
|
@ -31,8 +33,10 @@
|
|||
- item.id != "root"
|
||||
- item.id != "nfsnobody"
|
||||
- item.uid < min_int_uid | int
|
||||
- item.shell != " /bin/false"
|
||||
- item.shell != " /usr/sbin/nologin"
|
||||
- item.shell != "/bin/false"
|
||||
- item.shell != "/usr/sbin/nologin"
|
||||
- item.shell != "/sbin/nologin"
|
||||
- item.shell != "/dev/null"
|
||||
loop_control:
|
||||
label: "{{ item.id }}"
|
||||
when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue