From 3a8884b7b6abd5b3931d95cfc43528c308e75daf Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Sun, 2 Apr 2023 15:14:37 +0300 Subject: [PATCH] Fix if, add check version --- templates/openwrt-hirkn.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/openwrt-hirkn.j2 b/templates/openwrt-hirkn.j2 index 3c3b73a..26a4b47 100644 --- a/templates/openwrt-hirkn.j2 +++ b/templates/openwrt-hirkn.j2 @@ -45,7 +45,7 @@ script () { mkdir -p $dir - {% if list_ip or list_community %} + {% if ansible_distribution_major_version == "22" and (list_ip or list_community) %} echo "Flush sets" nft flush ruleset {% endif %}