Bind dhcpd to client bridge
This commit is contained in:
parent
cee870fb40
commit
2071508f1f
@ -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') }}"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user