version 3.7

This commit is contained in:
2025-09-09 09:49:43 +02:00
parent 6085075e26
commit ff3ce22d95

View File

@@ -1,11 +1,14 @@
- name: Get available updates - name: Patch Domain Controllers via JEA
win_powershell: Get-WindowsUpdate hosts: domain_controllers
- name: Install updates gather_facts: no
win_powershell: Install-WindowsUpdate -AcceptAll -AutoReboot tasks:
- name: Get available updates
- name: Get update history win_command: Get-WindowsUpdate
win_powershell: Get-WUHistory - name: Install updates
- name: Restart domain controller win_command: Install-WindowsUpdate -AcceptAll -AutoReboot
win_powershell: Restart-Computer -Force - name: Get update history
win_command: Get-WUHistory
- name: Restart domain controller
win_command: Restart-Computer -Force