- 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