dnsmasq module

This commit is contained in:
Michael Rennecke
2020-05-14 21:42:34 +02:00
parent 99a6387d8b
commit 43133af080
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
---
- name: install dnsmasq
apt:
name: dnsmasq
- name: Generate /etc/hosts file
template:
src: hosts.j2
dest: /etc/hosts
- name: listen on all interfaces
lineinfile:
dest: /etc/dnsmasq.conf
regexp: listen-address=
line: listen-address=127.0.0.1,{{ ansible_default_ipv4.address }}
state: present