ansible-role-win_updates icon indicating copy to clipboard operation
ansible-role-win_updates copied to clipboard

How to loop thru win_updates until no updates left

Open drehelis opened this issue 8 years ago • 3 comments

I've been struggling with this for quite some time now, In my organization, we carry out windows updates (using ansible) every quarter year and it usually requires 2-3 playbook executions to finish it off.

There's no looping support in Blocks yet, Include is not a module, more like a preprocessing macro so loops don't work here either.

drehelis avatar Jan 20 '17 08:01 drehelis

You can do this with a dynamic include.

mwinfie avatar Jul 05 '17 14:07 mwinfie

Hi autogun, i've just published some playbooks around windows patching; see if this helps with your issues.

Regards

ikunduraci avatar Dec 26 '17 06:12 ikunduraci

@ikunduraci I looked through https://github.com/ikunduraci/Ansible/blob/b3d50cf7bd067443bdf0c6735cce7a9b412b0de3/Windows/install-updates/install-updates.yml and didn't see how that method did an exhaustive loop for all the available updates.

deekayen avatar Oct 07 '20 18:10 deekayen