diff --git a/patch-dc-controllers.yaml b/patch-dc-controllers.yaml index e617185..bd1091b 100644 --- a/patch-dc-controllers.yaml +++ b/patch-dc-controllers.yaml @@ -20,9 +20,7 @@ - name: Reboot if required ansible.windows.win_powershell: script: | - if (Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot | Where-Object { $_.IsDownloaded -and $_.IsInstalled -eq $false }) { - Restart-Computer -Force - } + Restart-Computer -Force async: 1 poll: 0