Skip to content

4.5.1.3 not idempotent#514

Merged
uk-bolly merged 2 commits intoansible-lockdown:develfrom
bol7742:patch-1
Jan 22, 2026
Merged

4.5.1.3 not idempotent#514
uk-bolly merged 2 commits intoansible-lockdown:develfrom
bol7742:patch-1

Conversation

@bol7742
Copy link
Copy Markdown
Contributor

@bol7742 bol7742 commented Dec 22, 2025

Overall Review of Changes:

"4.5.1.3 | AUDIT | Ensure password expiration warning days is 7 or more | capture users not matching" currently capture all users with password, instead of only users with expiration warning delay lower than expected.
Therefore "4.5.1.3 | PATCH | Ensure password expiration warning days is 7 or more | change users not matching req" is executed on already compliant users.

This fix update "4.5.1.3 | AUDIT | Ensure password expiration warning days is 7 or more | capture users not matching" to capture only not compliant users, like in RHEL9-CIS ( https://github.com/ansible-lockdown/RHEL9-CIS/blob/devel/tasks/section_5/cis_5.4.1.x.yml#L87 )

Signed-off-by: bol7742 <102948121+bol7742@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Congrats on opening your first pull request and thank you for taking the time to help improve Ansible-Lockdown!
Please join in the conversation happening on the Discord Server as well.

Copy link
Copy Markdown
Contributor

@frederickw082922 frederickw082922 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR. However @bol7742 , it fails at run.

Signed-off-by: bol7742 <102948121+bol7742@users.noreply.github.com>
@bol7742
Copy link
Copy Markdown
Contributor Author

bol7742 commented Dec 24, 2025

Hi Frederick, sorry for the error, I just fixed it ! Thanks

@frederickw082922 frederickw082922 self-requested a review December 29, 2025 14:19
Copy link
Copy Markdown
Member

@uk-bolly uk-bolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work thank you

@uk-bolly uk-bolly removed the request for review from frederickw082922 January 16, 2026 18:57
@uk-bolly uk-bolly requested review from frederickw082922 and removed request for frederickw082922 January 22, 2026 08:44
Copy link
Copy Markdown
Contributor

@frederickw082922 frederickw082922 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @bol7742

@uk-bolly uk-bolly merged commit e53b7ac into ansible-lockdown:devel Jan 22, 2026
4 checks passed
@uk-bolly uk-bolly mentioned this pull request Jan 22, 2026
@bol7742 bol7742 deleted the patch-1 branch January 23, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants