From ff3ce22d950f4fc8c37b5b6595ff599654e73c65 Mon Sep 17 00:00:00 2001 From: "mhorak@totalservice.cz" Date: Tue, 9 Sep 2025 09:49:43 +0200 Subject: [PATCH] version 3.7 --- patch-dc-controllers.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/patch-dc-controllers.yaml b/patch-dc-controllers.yaml index 4691072..7d85b18 100644 --- a/patch-dc-controllers.yaml +++ b/patch-dc-controllers.yaml @@ -1,11 +1,14 @@ -- name: Get available updates - win_powershell: Get-WindowsUpdate -- name: Install updates - win_powershell: Install-WindowsUpdate -AcceptAll -AutoReboot - -- name: Get update history - win_powershell: Get-WUHistory -- name: Restart domain controller - win_powershell: Restart-Computer -Force +- name: Patch Domain Controllers via JEA + hosts: domain_controllers + gather_facts: no + tasks: + - name: Get available updates + win_command: Get-WindowsUpdate + - name: Install updates + win_command: Install-WindowsUpdate -AcceptAll -AutoReboot + - name: Get update history + win_command: Get-WUHistory + - name: Restart domain controller + win_command: Restart-Computer -Force