include: | include: | ||||
- .{{ grains['os']|lower }}.absent | |||||
- .{{ grains['os_family']|lower }}.absent |
{% set name = { | |||||
'RedHat': 'redhat', | |||||
'Debian': grains['os_family']|lower, | |||||
}.get(grains.os_family) %} | |||||
include: | include: | ||||
- .{{ name }} | |||||
- .{{ grains['os_family']|lower }} |