mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
move dnsmasq config file to /etc/dnsmasq.d/
Bugfix don't supply named/bind files when not enabled.
This commit is contained in:
parent
7387201b3f
commit
f43f2f4d77
1 changed files with 8 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
|||
- { src: 'named/named-iiab.conf.j2', dest: '/etc/named-iiab.conf', mode: '0644' }
|
||||
- { src: 'named/school.local.zone.db', dest: '/var/named-iiab/', mode: '0644' }
|
||||
- { src: 'named/school.internal.zone.db', dest: '/var/named-iiab/', mode: '0644' }
|
||||
when: named_enabled and named_install
|
||||
|
||||
- name: Enable named service ({{ dns_service }}) if named_enabled
|
||||
systemd:
|
||||
|
@ -50,9 +51,15 @@
|
|||
- name: Install /etc/dnsmasq.conf from template, if dnsmasq_enabled
|
||||
template:
|
||||
src: network/dnsmasq.conf.j2
|
||||
dest: /etc/dnsmasq.conf
|
||||
dest: /etc/dnsmasq.d/iiab.conf
|
||||
when: dnsmasq_enabled and dnsmasq_install
|
||||
|
||||
- name: Remove /etc/dnsmasq.d/iiab.conf when not dnsmasq_enabled or is Appliance
|
||||
file:
|
||||
path: /etc/dnsmasq.d/iiab.conf
|
||||
state: absent
|
||||
when: (not dnsmasq_enabled) or (iiab_network_mode == "Appliance")
|
||||
|
||||
- name: Enable iiab-dnsmasq systemd service, if dnsmasq_enabled
|
||||
systemd:
|
||||
name: iiab-dnsmasq
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue