mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
Signed-off-by: gbolo <george.bolo@gmail.com>
This commit is contained in:
parent
879ecefd8c
commit
3d0b6670d1
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@
|
|||
ansible.builtin.getent:
|
||||
database: passwd
|
||||
# creates a dict for each user containing UID/HOMEDIR etc...
|
||||
when: getent_passwd is undefined # skip this task if "getent" has run before
|
||||
# skip this task if getent was run before without specifying a key (single entry)
|
||||
when: getent_passwd is undefined or
|
||||
getent_passwd | length <= 1
|
||||
|
||||
- name: Read local linux shadow database
|
||||
ansible.builtin.getent:
|
||||
|
|
Loading…
Reference in a new issue