-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from ansible-lockdown/2024_FEB_UPDATE
2024 March Bug fixes for Cloud VM logic on section 1.2.x, Improved Reboot Handler and SID Logic Improvement
- Loading branch information
Showing
13 changed files
with
227 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
|
||
- name: reboot_windows | ||
ansible.windows.win_reboot: | ||
reboot_timeout: 3600 | ||
- name: change_requires_reboot | ||
ansible.builtin.set_fact: | ||
reboot_host: true | ||
tags: | ||
- always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
|
||
- name: "POST | Flush Handlers" | ||
ansible.builtin.meta: flush_handlers | ||
tags: | ||
- always | ||
|
||
- name: "POST | Reboot System Options" | ||
block: | ||
- name: "POST | Rebooting System................. Skip Reboot Has Been Set To: False" | ||
ansible.windows.win_reboot: | ||
reboot_timeout: 3600 | ||
when: | ||
- reboot_host | ||
- not skip_reboot | ||
|
||
- name: "POST | Warning A Reboot Is Required, Skip Reboot Has Been Set" | ||
ansible.builtin.debug: | ||
msg: | ||
- "Warning!! Changes Have Been Made That Require A Reboot To Be Implemented Manually." | ||
- "Skip Reboot Was Set To: True - This Can Affect Compliance Check Results." | ||
changed_when: true | ||
when: | ||
- reboot_host | ||
- skip_reboot | ||
|
||
- name: "POST | Warning A Reboot Is Required, Skip Reboot Has Been Set | Warning Count" | ||
ansible.builtin.import_tasks: | ||
file: warning_facts.yml | ||
when: | ||
- reboot_host | ||
- skip_reboot | ||
vars: | ||
warn_control_id: Reboot_Required | ||
tags: | ||
- always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.