ruleset(name="{{ item.name }}") {
{%   if item.exclude | d([]) %}
    {{ item.facility | d('*') }}.{{ item.severity | d('*') }};{{ item.exclude | join(';') }} action(name="{{ item.name }}" type="omfwd" Target="{{ item.target }}" Port="{{ item.port | d(514) }}" Protocol="{{ item.protocol | d('tcp') }}")
{% else %}
    {{ item.facility | d('*') }}.{{ item.severity | d('*') }} action(name="{{ item.name }}" type="omfwd" Target="{{ item.target }}" Port="{{ item.port | d(514) }}" Protocol="{{ item.protocol | d('tcp') }}")
{% endif %}
}
