mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Move the dnsmasq-restarter script from dnsmasq.yml to enable_services.yml
This commit is contained in:
parent
afee35b222
commit
dfeb3cb5a0
2 changed files with 9 additions and 8 deletions
|
@ -14,14 +14,6 @@
|
|||
- { src: 'roles/network/templates/network/dnsmasq.service.u18', dest: '/etc/systemd/system/iiab-dnsmasq.service', mode: '0644' }
|
||||
- { src: 'roles/network/templates/network/dnsmasq-iiab', dest: '/etc/dnsmasq.d/dnsmasq-iiab', mode: '644' }
|
||||
|
||||
- name: Copy script to restart dnsmasq whenever br0 comes up
|
||||
template:
|
||||
src: "roles/network/templates/network/dnsmasq.sh.j2"
|
||||
dest: "/etc/networkd-dispatcher/routable.d/dnsmasq.sh"
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Don't use stock dnsmasq systemd unit file during boot
|
||||
systemd:
|
||||
name: dnsmasq
|
||||
|
|
|
@ -54,6 +54,15 @@
|
|||
dest: /etc/dnsmasq.d/iiab.conf
|
||||
when: dnsmasq_enabled and dnsmasq_install and (iiab_network_mode != "Appliance")
|
||||
|
||||
- name: Copy script to restart dnsmasq whenever br0 comes up
|
||||
template:
|
||||
src: "roles/network/templates/network/dnsmasq.sh.j2"
|
||||
dest: "/etc/networkd-dispatcher/routable.d/dnsmasq.sh"
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
when: dnsmasq_enabled and dnsmasq_install and (iiab_network_mode != "Appliance")
|
||||
|
||||
- name: Remove /etc/dnsmasq.d/iiab.conf, when not dnsmasq_enabled or is Appliance
|
||||
file:
|
||||
path: /etc/dnsmasq.d/iiab.conf
|
||||
|
|
Loading…
Reference in a new issue