aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates/dhcpd.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/templates/dhcpd.conf.j2')
-rw-r--r--roles/space_server/templates/dhcpd.conf.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/space_server/templates/dhcpd.conf.j2 b/roles/space_server/templates/dhcpd.conf.j2
index e071a88..23e08da 100644
--- a/roles/space_server/templates/dhcpd.conf.j2
+++ b/roles/space_server/templates/dhcpd.conf.j2
@@ -105,14 +105,14 @@ subnet 10.42.3.0 netmask 255.255.255.0 {
group {
use-host-decl-names on;
{% for host in local_hosts %}
+{% if 'mac' in host and 'ipv4' in host %}
-{% if 'mac' in host %}
{% if 'description' in host %}
# {{ host.description }}
{% endif %}
host {{ host.name }} {
hardware ethernet {{ host.mac }};
- fixed-address {{ host.ips | first }};
+ fixed-address {{ host.ipv4|join(', ') }};
{% if 'filename' in host %}
filename "{{ host.filename }}";
{% endif %}