Skip to content

Commit 32160d3

Browse files
committed
refactor: windows update (#1014)
Added a retry mechanism for Windows updates to handle failures more gracefully. This includes registering the updates, setting a condition to retry until the updates do not fail, and specifying the number of retries and delay between them. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent edc0589 commit 32160d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ansible/roles/base/tasks/windows.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@
4747
- 5034439
4848
- 5034441
4949
reboot: true
50+
register: win_updates
51+
until: not win_updates.failed
52+
retries: 5
53+
delay: 300

0 commit comments

Comments
 (0)