Skip to content

Instantly share code, notes, and snippets.

@offlinehoster
Created May 19, 2016 18:38
Show Gist options
  • Save offlinehoster/eaa3b587285010f4d77564422fac5995 to your computer and use it in GitHub Desktop.
Save offlinehoster/eaa3b587285010f4d77564422fac5995 to your computer and use it in GitHub Desktop.
- name: Updating current Windows Installation with all available Updates for the OS
win_updates:
category_names: ['SecurityUpdates','CriticalUpdates','UpdateRollups','ServicePacks','Application','Connectors','DefinitionUpdates','FeaturePacks','Tools','Updates']
register: reboot_hint
- name: Status of Updates
debug: var=reboot_hint.stdout.reboot_required
---------------------------------------------------
ok: [192.168.0.168] => {
"reboot_hint.stdout.reboot_required": "VARIABLE IS NOT DEFINED!"
}
#########################################################################
@offlinehoster
Copy link
Author

ok: [192.168.0.168] => { "reboot_hint": { "changed": false, "found_update_count": 0, "installed_update_count": 0, "reboot_required": true, "updates": {} } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment