File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 22- name : Get user accounts | DTAG SEC Req 3.21-4
33 command : " awk -F: '{print $1}' /etc/passwd"
44 changed_when : False
5+ always_run : True
56 register : users
67
78- name : delete rhosts-files from system | DTAG SEC Req 3.21-4
Original file line number Diff line number Diff line change 33- name : get UID_MIN from login.defs
44 shell : awk '/^\s*UID_MIN\s*([0-9]*).*?$/ {print $2}' /etc/login.defs removes=/etc/login.defs
55 register : uid_min
6+ always_run : True
67 changed_when : False
78
89- name : calculate UID_MAX from UID_MIN by substracting 1
2021- name : get all system accounts
2122 command : awk -F'':'' '{ if ( $3 <= {{uid_max|quote}} ) print $1}' /etc/passwd removes=/etc/passwd
2223 changed_when : False
24+ always_run : True
2325 register : sys_accs
2426
2527- name : remove always ignored system accounts from list
You can’t perform that action at this time.
0 commit comments