mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-13 10:34:29 +05:00
Major release for ansible
This commit is contained in:
@@ -11,6 +11,10 @@
|
|||||||
register: dnsmasq_confdir
|
register: dnsmasq_confdir
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: Get openwrt major release
|
||||||
|
shell: cat /etc/openwrt_release | grep -Eo [0-9]{2}[.][0-9]{2}[.][0-9]* | cut -d '.' -f 1 | tail -n 1
|
||||||
|
register: openwrt_major_release
|
||||||
|
|
||||||
- name: debug
|
- name: debug
|
||||||
debug:
|
debug:
|
||||||
var: ansible_distribution_major_version
|
var: ansible_distribution_major_version
|
||||||
@@ -74,7 +78,7 @@
|
|||||||
key: dhcp.@dnsmasq[0]
|
key: dhcp.@dnsmasq[0]
|
||||||
value:
|
value:
|
||||||
confdir: "/tmp/dnsmasq.d"
|
confdir: "/tmp/dnsmasq.d"
|
||||||
when: dnsmasq_confdir.stdout != "/tmp/dnsmasq.d"
|
when: dnsmasq_confdir.stdout != "/tmp/dnsmasq.d" and openwrt_major_release >= 24
|
||||||
|
|
||||||
# Getdomains script configure
|
# Getdomains script configure
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user