This role can be used to check for pending reboots for Windows hosts.
- Ansible 2.4
- Prepared Windows System
windows_reboot_allowed
: Determines if reboot of windows machines is allowed. When it is set to false and reboot is pending, it will stop execution of the playbook. Useful to check before installing updates or installing software.windows_pending_reboot_fail
: Allows to fail playbook if reboot is required but not allowed.
- hosts: win_servers
vars:
windows_reboot_allowed: false
windows_pending_reboot_fail: true
roles:
- role: valerius257.windows-pending-reboot