mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
use alternate hosts file for dnsmasq
This commit is contained in:
parent
a2c79f9a31
commit
084f2a0328
4 changed files with 21 additions and 5 deletions
|
|
@ -54,6 +54,12 @@
|
|||
dest: /etc/dnsmasq.d/iiab.conf
|
||||
when: dnsmasq_install and dnsmasq_enabled and (iiab_network_mode != "Appliance")
|
||||
|
||||
- name: Install /etc/hosts.dnsmasq from template, sourced by /etc/dnsmasq.d/iiab.conf
|
||||
template:
|
||||
src: network/hosts-dnsmasq.j2
|
||||
dest: /etc/hosts.dnsmasq
|
||||
when: dnsmasq_install and dnsmasq_enabled and (iiab_network_mode != "Appliance")
|
||||
|
||||
## Another way to skin the cat
|
||||
##- name: Check if systemd service networkd-dispatcher is enabled
|
||||
## systemd:
|
||||
|
|
|
|||
|
|
@ -49,11 +49,11 @@
|
|||
# when: 'iiab_wan_iface != "none" and wan_ip != "dhcp"'
|
||||
##### End static ip address info
|
||||
|
||||
- include_tasks: hosts.yml
|
||||
tags:
|
||||
- network
|
||||
- hostname
|
||||
- domain
|
||||
#- include_tasks: hosts.yml
|
||||
# tags:
|
||||
# - network
|
||||
# - hostname
|
||||
# - domain
|
||||
|
||||
- name: Configure wondershaper
|
||||
include_tasks: wondershaper.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue