base: {%- for role in ('database', 'redis', 'queues', 'gva', 'gvaldap', 'gvafile', 'gvamysql', 'gvapgsql', 'gvaweb') %} 'roles:gnuviechadmin.{{ role }}': - match: grain - gnuviechadmin.{{ role }} {% endfor %} {% for role in ('fileserver', 'ldapserver', 'ldapclient') %} 'roles:{{ role }}': - match: grain - {{ role }} {% endfor %}