Add 'installbox' configuration.
This commit is contained in:
commit
546dabd7aa
16 changed files with 323 additions and 0 deletions
3
roles/dhcp-dns-dnsmasq/handlers/main.yml
Normal file
3
roles/dhcp-dns-dnsmasq/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- name: restart dnsmasq
|
||||
service: name=dnsmasq state=restarted enabled=yes
|
||||
listen: "restart dnsmasq"
|
10
roles/dhcp-dns-dnsmasq/tasks/main.yml
Normal file
10
roles/dhcp-dns-dnsmasq/tasks/main.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
- name: install dns-firewall packages
|
||||
apt:
|
||||
name: dnsmasq
|
||||
state: latest
|
||||
|
||||
- name: configure dnsmasq
|
||||
template:
|
||||
src: dnsmasq-transparent-proxy.j2
|
||||
dest: /etc/dnsmasq.d/transparent-proxy
|
||||
notify: "restart dnsmasq"
|
|
@ -0,0 +1,2 @@
|
|||
interface={{ if_lan }}
|
||||
dhcp-range={{ dhcp_range }}
|
Loading…
Add table
Add a link
Reference in a new issue