Add confdir for snapshot

This commit is contained in:
Akiyamov authored and GitHub committed 2024-12-03 23:36:40 +05:00
1 parent 1e7a3bb8f6
commit a974ddef29
2 files changed
+21

No files matched your search

+12
View File
@@ -6,6 +6,10 @@
shell: opkg list-installed | grep dnsmasq-full | awk '{print $3}'
register: dnsmasqfull_version
- name: Check confdir option
shell: uci get dhcp.@dnsmasq[0].confdir
register: dnsmasq_confdir
- name: debug
debug:
var: ansible_distribution_major_version
@@ -63,6 +67,14 @@
when: ansible_distribution_major_version >= "23" and list_domains and not dnsmasqfull_version.stdout
ignore_errors: true
- name: set confdir for dnsmasq
uci:
command: set
key: dhcp.@dnsmasq[0]
value:
confdir: "/tmp/dnsmasq.d"
when: dnsmasq_confdir.stdout != "/tmp/dnsmasq.d"
# Getdomains script configure
- name: getdomains script copy