
also add a dhcp-relay restart to debian host Change-Id: Ib4184a615369707d5aea366814d0f0a71f745ec8
17 lines
473 B
YAML
17 lines
473 B
YAML
---
|
|
|
|
- name: get isc-dhcp-relay agent
|
|
apt: pkg=isc-dhcp-relay state=installed
|
|
|
|
- name: make dhcp-relay agent listen to cobbler
|
|
lineinfile: dest=/etc/default/isc-dhcp-relay
|
|
regexp='^SERVERS'
|
|
line='SERVERS="{{ cobbler_docker_ip }}"'
|
|
|
|
- name: make dhcp-relay agetn listen on compass0
|
|
lineinfile: dest=/etc/default/isc-dhcp-relay
|
|
regexp='^INTERFACES'
|
|
line='INTERFACES="compass0"'
|
|
notify:
|
|
restart dhcp-relay
|