18 lines
503 B
Django/Jinja
18 lines
503 B
Django/Jinja
# {{ ansible_managed }}
|
|
{% set postroutingmerged = nft__nat_default_postrouting_rules.copy() %}
|
|
{% set _ = postroutingmerged.update(nft__nat_postrouting_rules) %}
|
|
{% set _ = postroutingmerged.update(nft__nat_group_postrouting_rules) %}
|
|
{% set _ = postroutingmerged.update(nft__nat_host_postrouting_rules) %}
|
|
|
|
chain postrouting {
|
|
{% for group, rules in postroutingmerged|dictsort %}
|
|
# {{ group }}
|
|
{% if not rules %}
|
|
# (none)
|
|
{% endif %}
|
|
{% for rule in rules %}
|
|
{{ rule }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
}
|