--- # tasks file for windows_updates - name: Install all security, critical, and rollup updates win_updates: category_names: - SecurityUpdates - CriticalUpdates - UpdateRollups - name: Install Application updates win_updates: category_names: - Application - name: Install connectors win_updates: category_names: - Connectors - name: Install Definition Updates win_updates: category_names: - DefinitionUpdates - name: Install Feature and Service Packs win_updates: category_names: - FeaturePacks - ServicePacks - name: Install Tools win_updates: category_names: - Tools - name: Install Tools win_updates: category_names: - Updates - Upgrades - name: Install all updates and reboot as many times as needed ansible.windows.win_updates: category_names: '*' reboot: yes