diff --git a/windowssample.yml b/windowssample.yml index be90af1..462f34a 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,10 +1,20 @@ --- - hosts: all +- hosts: all tasks: - - name: Install all updates and reboot as many times as needed - ansible.windows.win_updates: - category_names: '*' - reboot: true + - name: Choose which Windows updates to install + win_updates: + category_names: + - SecurityUpdates + - CriticalUpdates + - UpdateRollups + +#--- +# hosts: all +# tasks: +# - name: Install all updates and reboot as many times as needed +# ansible.windows.win_updates: +# category_names: '*' +# reboot: true #- name: Install all security, critical, and rollup updates without a scheduled task # ansible.windows.win_updates: