From dfab862088a79ba4d0a5ac95d7fcf5963063333d Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Mon, 16 Dec 2024 10:23:45 +0300 Subject: [PATCH] Fixed for 24 --- tasks/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7e2a130..4c56048 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -78,7 +78,9 @@ key: dhcp.@dnsmasq[0] value: confdir: "/tmp/dnsmasq.d" - when: dnsmasq_confdir.stdout != "/tmp/dnsmasq.d" and openwrt_major_release >= 24 + when: ansible_distribution_major_version >= 24 + notify: + - Restart dnsmasq # Getdomains script configure @@ -672,6 +674,13 @@ notify: - Restart firewall + - name: uci commit dhcp + uci: + command: commit + config: dhcp + notify: + - Restart dnsmasq + - name: uci commit network uci: command: commit