We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60d836b + 2dcb306 commit e53b7acCopy full SHA for e53b7ac
tasks/section_4/cis_4.5.1.x.yml
@@ -92,7 +92,7 @@
92
93
- name: "4.5.1.3 | AUDIT | Ensure password expiration warning days is 7 or more | capture users not matching"
94
ansible.builtin.shell: >
95
- awk -F: '/^[^:\n\r]+:[^!*xX\n\r]/ {print $1}' /etc/shadow
+ awk -F: '/^[^:]+:[^!*]/ && $6< {{ rhel8cis_pam_pass_warn_age }} {print $1}' /etc/shadow
96
changed_when: false
97
failed_when: discovered_users_warn_days.rc not in [ 0, 1 ]
98
check_mode: false
0 commit comments