version 3.7
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
|
|
||||||
|
- name: Patch Domain Controllers via JEA
|
||||||
|
hosts: domain_controllers
|
||||||
|
gather_facts: no
|
||||||
|
tasks:
|
||||||
- name: Get available updates
|
- name: Get available updates
|
||||||
win_powershell: Get-WindowsUpdate
|
win_command: Get-WindowsUpdate
|
||||||
- name: Install updates
|
- name: Install updates
|
||||||
win_powershell: Install-WindowsUpdate -AcceptAll -AutoReboot
|
win_command: Install-WindowsUpdate -AcceptAll -AutoReboot
|
||||||
|
|
||||||
- name: Get update history
|
- name: Get update history
|
||||||
win_powershell: Get-WUHistory
|
win_command: Get-WUHistory
|
||||||
- name: Restart domain controller
|
|
||||||
win_powershell: Restart-Computer -Force
|
|
||||||
|
|
||||||
|
- name: Restart domain controller
|
||||||
|
win_command: Restart-Computer -Force
|
||||||
|
|||||||
Reference in New Issue
Block a user