M README.md => README.md +1 -1
@@ 5,7 5,7 @@ With the following changes/fixes:
- Add support for Alpine Linux
- Simply nftables install task
- Fixed loop_control / loop_var re-use warning from ansible
-
+- Conditionally add ruleset flushing
[](https://conventionalcommits.org)
[](https://semver.org/spec/v2.0.0.html)
M templates/etc/nftables.conf => templates/etc/nftables.conf +3 -0
@@ 4,7 4,10 @@
# {{ managed_line }}
{% endfor %}
+{% if nftables_flush_ruleset %}
flush ruleset
+{% endif %}
+
{% if nftables_ruleset is defined %}
{% for table in nftables_ruleset %}