Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding post section #9

Merged
merged 5 commits into from
Sep 6, 2024
Merged

Adding post section #9

merged 5 commits into from
Sep 6, 2024

Conversation

mfortin
Copy link
Contributor

@mfortin mfortin commented Aug 27, 2024

Overall Review of Changes:
Other Windows roles for CIS have a post.yml section where handlers are flushed and Windows host is rebooted. Kept the same structure as sometimes, after Windows are applied, a reboot is expected and could prevent some other operations from working after this role has ran.
If windows reboot happen at the complete end of the playbook, it may prevent some other programs to install.
If windows reboot does not happen, then sysprep may fail to complete because of pending reboot being required.

Keeping the same structure accross the different roles seemed like the best thing to do.

Issue Fixes:
No issues, same as ansible-lockdown/Windows-2022-CIS#46

Enhancements:
Allow handlers to reboot host, or not.

How has this been tested?:
Yes, tested on different local Ansible executions.

Copy link
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 @mfortin !

Copy link
Contributor

@MrSteve81 MrSteve81 left a comment

Choose a reason for hiding this comment

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

Approved

@MrSteve81 MrSteve81 merged commit f235c6d into ansible-lockdown:devel Sep 6, 2024
3 checks passed
@mfortin mfortin deleted the post branch September 6, 2024 14:53
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