From 37c6298feaac2e9a12ab97fe5fd937bccb7a8caa Mon Sep 17 00:00:00 2001 From: "mhorak@totalservice.cz" Date: Mon, 8 Sep 2025 17:21:02 +0200 Subject: [PATCH] version 3.4 --- patch-dc-controllers.yaml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/patch-dc-controllers.yaml b/patch-dc-controllers.yaml index fa36393..7438fc1 100644 --- a/patch-dc-controllers.yaml +++ b/patch-dc-controllers.yaml @@ -12,23 +12,9 @@ - name: Install updates ansible.windows.win_powershell: - Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot -Verbose + Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -Verbose register: install_result - - name: Reboot if required - ansible.windows.win_powershell: - Restart-Computer -Force - async: 1 - poll: 0 - - - name: Check update history - ansible.windows.win_powershell: - Get-WUHistory | Select-Object -First 5 - register: wu_history - changed_when: false - - - name: Show update history - debug: - var: wu_history.stdout_lines +