~craftyguy/ansible-nftables

3043da9a3baa0852d0aa89a64612c2ec6deeeca6 — Clayton Craft 1 year, 7 months ago bba55fd
templates/nftables.conf: conditionally add ruleset flushing
2 files changed, 4 insertions(+), 1 deletions(-)

M README.md
M templates/etc/nftables.conf
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

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-green.svg)](https://conventionalcommits.org)
[![Semantic Versioning](https://img.shields.io/badge/Semantic%20Versioning-2.0.0-green)](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 %}