-
name: Windows Update hosts: all gather_facts: false tasks:
- name: Running Windows Update win_updates: category_names: ['SecurityUpdates','CriticalUpdates','UpdateRollups', 'Updates', 'DefinitionUpdates'] #category_names: ['SecurityUpdates'] register: result
- debug: var=result
- win_reboot: when: result.reboot_required
github-chiku / ansible-windows-patching Goto Github PK
View Code? Open in Web Editor NEWThis project forked from johancarstens/ansible-windows-patching