mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-16 20:14:34 +05:00
Fix if, add check version
This commit is contained in:
@@ -45,7 +45,7 @@ script () {
|
|||||||
|
|
||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
|
|
||||||
{% if list_ip or list_community %}
|
{% if ansible_distribution_major_version == "22" and (list_ip or list_community) %}
|
||||||
echo "Flush sets"
|
echo "Flush sets"
|
||||||
nft flush ruleset
|
nft flush ruleset
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user