ansible.nftables/templates/etc/nftables.d/inet-output.nft.j2

17 lines
381 B
Plaintext
Raw Normal View History

2017-08-08 15:35:05 +02:00
# {{ ansible_managed }}
{% set outputmerged = nft_output_default_rules.copy() %}
{% set _ = outputmerged.update(nft_output_group_rules) %}
{% set _ = outputmerged.update(nft_output_host_rules) %}
chain output {
{% for group, rules in outputmerged|dictsort %}
# {{ group }}
{% if not rules %}
# (none)
{% endif %}
{% for rule in rules %}
{{ rule }}
{% endfor %}
{% endfor %}
}