Skip to content

Commit

Permalink
Fixed for 24
Browse files Browse the repository at this point in the history
  • Loading branch information
itdoginfo committed Dec 16, 2024
1 parent 02f5e5e commit dfab862
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dfab862

Please sign in to comment.