win_ansible_role_base_setup/tasks/updates.yml

9 lines
272 B
YAML

---
- name: Search-only, return list of found updates (if any), log to C:\ansible_updates.txt
ansible.windows.win_updates:
category_names:
- SecurityUpdates
- CriticalUpdates
- UpdateRollups
state: searched
log_path: C:\ansible_updates.txt