1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #2051 from jvonau/hosts_dnsmasq

Use alternate hosts file /etc/hosts.dnsmasq [so dnsmasq DOESN'T send "127.0.0.1 box box.lan" from /etc/hosts to client machines]
This commit is contained in:
A Holt 2019-12-11 00:56:03 -05:00 committed by GitHub
commit c92160be60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 5 deletions

View file

@ -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 for /etc/dnsmasq.d/iiab.conf (instead of using /etc/hosts)
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:

View file

@ -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