{% set hardwaretype = salt['grains.get']( 'hardware', default={} ) %} include: {%- if 'unknown' not in hardwaretype %} - .apt {%- endif %}