Bind dhcpd to client bridge

This commit is contained in:
Markus 2017-04-03 22:35:54 +02:00
parent cee870fb40
commit 2071508f1f
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
---
dhcpd_interfaces: br-{{ site_code }}
dhcpd_mtu: 1280
dhcpd_first: "{{ batman_ipv4 | ipaddr('512') | ipaddr('address') }}"
dhcpd_last: "{{ batman_ipv4 | ipaddr('2558') | ipaddr('address') }}"

View File

@ -7,5 +7,12 @@
template: src=dhcpd.conf.j2 dest=/etc/dhcp/dhcpd.conf
notify: Restart isc-dhcp-server
- name: Specify dhcp interfaces
lineinfile:
dest: /etc/default/isc-dhcp-server
line: "INTERFACES=\"{{ dhcpd_interfaces }}\""
regexp: "^INTERFACES="
notify: Restart isc-dhcp-server
- name: Start the dhcp server
service: name=isc-dhcp-server state=started enabled=yes