blob: 99692ccf5bc2af2bb6325b1f4ad488260e68982f [file] [log] [blame]
Zack Williams9fc21d72020-11-22 22:36:54 -07001---
2# dhcpd tasks/Debian.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7- name: Install dhcpd and tftp packages (Debian)
8 apt:
9 name:
10 - "isc-dhcp-server"
11 - "tftpd-hpa"
12 state: "present"
13 update_cache: true
14 cache_valid_time: 3600
15
16- name: Set dhcpd listening interfaces
17 lineinfile:
18 path: "/etc/default/isc-dhcp-server"
19 line: "INTERFACESv4=\"{{ dhcpd_interfaces | join(' ') }}\""
20 regex: "^INTERFACESv4=.*"
21 notify:
22 - "dhcpd-restart"