dhcpd: Install and configure ISC DHCPD

This commit is contained in:
2018-03-12 20:27:28 -05:00
parent 9e73b56ac7
commit 4811a726a1
8 changed files with 182 additions and 0 deletions

10
roles/dhcpd/vars/main.yml Normal file
View File

@@ -0,0 +1,10 @@
dyn_hostname_expr: >-
pick(option fqdn.hostname, option host-name,
concat("{prefix}", concat(
suffix(concat("0", binary-to-ascii(16, 8, "", substring(hardware, 1, 1))), 2),
suffix(concat("0", binary-to-ascii(16, 8, "", substring(hardware, 2, 1))), 2),
suffix(concat("0", binary-to-ascii(16, 8, "", substring(hardware, 3, 1))), 2),
suffix(concat("0", binary-to-ascii(16, 8, "", substring(hardware, 4, 1))), 2),
suffix(concat("0", binary-to-ascii(16, 8, "", substring(hardware, 5, 1))), 2),
suffix(concat("0", binary-to-ascii(16, 8, "", substring(hardware, 6, 1))), 2)
)))