2019-04-07 11:37:31 -07:00
|
|
|
|
|
|
|
- name: Check for updates
|
|
|
|
hosts: windows
|
|
|
|
|
|
|
|
tasks:
|
2019-04-07 14:27:08 -07:00
|
|
|
- name: Check for updates. Log the needed updates.
|
|
|
|
win_updates:
|
|
|
|
state: searched
|
|
|
|
category_name:
|
|
|
|
- SecurityUpdates
|
|
|
|
- CriticalUpdates
|
|
|
|
- UpdateRollups
|
|
|
|
#log_path: C:\ansible-Updates.txt
|
|
|
|
register: updates
|
|
|
|
|
|
|
|
- name: return report
|
|
|
|
debug:
|
|
|
|
var: updates
|
|
|
|
|
2019-04-07 11:37:31 -07:00
|
|
|
|