ansible-role-win_updates
ansible-role-win_updates copied to clipboard
How to loop thru win_updates until no updates left
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.
You can do this with a dynamic include.
Hi autogun, i've just published some playbooks around windows patching; see if this helps with your issues.
Regards
@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.