-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin_updates.yaml
98 lines (88 loc) · 2.13 KB
/
win_updates.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
- name: Configure WinRM for updates
ansible.windows.win_service:
name: WinRM
start_mode: delayed
- name: Pre Updates Check
ansible.windows.win_updates:
category_names:
- Application
- Connectors
- SecurityUpdates
- CriticalUpdates
- QualityUpdates
- UpdateRollups
- FeaturePacks
- ServicePacks
- Drivers
- DeveloperKits
- DefinitionUpdates
- Updates
- Windows 11
- Microsoft Defender Antivirus
- Windows 10 LTSB
- Windows 10, version 1903 and later
- Guidance
- Tools
state: searched
log_path: C:\Windows\Temp\Pre-AllUpdatesFound.txt
- name: First update run
ansible.windows.win_updates:
category_names:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups
- Updates
reboot: yes
state: installed
log_path: C:\Windows\Temp\ansible_updates_first_run.txt
- name: First update run reboot
win_reboot:
reboot_timeout: 3600
- name: Second update run
ansible.windows.win_updates:
category_names:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups
- Updates
reboot: yes
state: installed
log_path: C:\Windows\Temp\ansible_updates_second_run.txt
- name: Second update run reboot
win_reboot:
reboot_timeout: 3600
- name: Third update run
ansible.windows.win_updates:
category_names:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups
- Updates
reboot: yes
state: installed
log_path: C:\Windows\Temp\ansible_updates_third_run.txt
- name: Third update run reboot
win_reboot:
reboot_timeout: 3600
- name: Post Update Check
ansible.windows.win_updates:
category_names:
- Application
- Connectors
- CriticalUpdates
- DefinitionUpdates
- DeveloperKits
- FeaturePacks
- Guidance
- SecurityUpdates
- ServicePacks
- Tools
- UpdateRollups
- Updates
state: searched
log_path: C:\Windows\Temp\Post-AllUpdatesFound.txt
- name: Set WinRM back to standard settings
ansible.windows.win_service:
name: WinRM
start_mode: auto