version 3.8
This commit is contained in:
@@ -1,14 +1,6 @@
|
|||||||
|
- name: Install updates
|
||||||
- name: Patch Domain Controllers via JEA
|
|
||||||
hosts: domain_controllers
|
hosts: domain_controllers
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: Get available updates
|
- name: Run Install-WindowsUpdate
|
||||||
win_command: Get-WindowsUpdate
|
command: Install-WindowsUpdate -AcceptAll -AutoReboot
|
||||||
- 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user