Is there a way to check inside a template if the host the template gets written to has a particular role?
{% if host.has_role(foo) %} ... {% endif %} <
{% if host.has_role(foo) %} ... {% endif %}