15 lines
407 B
YAML
15 lines
407 B
YAML
|
|
- 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
|