{% if grains['kernel'] == 'Windows' %} # Update the system using the state defaults update_system: wua.up_to_date # Update the drivers update_drivers: wua.up_to_date: - software: False - drivers: True - skip_reboot: False # Apply all critical updates update_critical: wua.up_to_date: - severities: - Critical {% endif %}