mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-13 10:34:29 +05:00
Fix if, add check version
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user