17 lines
373 B
Django/Jinja
17 lines
373 B
Django/Jinja
# {{ ansible_managed }}
|
|
{% set inputmerged = nft_input_default_rules.copy() %}
|
|
{% set _ = inputmerged.update(nft_input_group_rules) %}
|
|
{% set _ = inputmerged.update(nft_input_host_rules) %}
|
|
|
|
chain input {
|
|
{% for group, rules in inputmerged|dictsort %}
|
|
# {{ group }}
|
|
{% if not rules %}
|
|
# (none)
|
|
{% endif %}
|
|
{% for rule in rules %}
|
|
{{ rule }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
}
|