Zack Williams | 9fc21d7 | 2020-11-22 22:36:54 -0700 | [diff] [blame] | 1 | --- |
| 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" |