Skip to content
Snippets Groups Projects
Commit cc233983 authored by eturkmen's avatar eturkmen
Browse files

Update file Playbook-Test2.yaml

parent 5eb772b9
No related branches found
No related tags found
No related merge requests found
---
- name: Update Windows
- name: Windows Updates
hosts: win
gather_facts: no
become_method: runas
tasks:
- name: Install Updates
win_shell: Get-WindowsUpdate -AcceptAll -Install -IgnoreReboot
\ No newline at end of file
- name: Install critical and security updates
ansible.windows.win_updates:
category_names:
- CriticalUpdates
- SecurityUpdates
state: installed
reboot: false
log_path: C:\ansible.txt
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment