From 23ff69931d3b574e4c6553ce66fd974f2290d49c Mon Sep 17 00:00:00 2001 From: "mhorak@totalservice.cz" Date: Mon, 8 Sep 2025 16:18:15 +0200 Subject: [PATCH] Version 3.2 --- patch-dc-controllers.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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