dhcpd: Fix static hosts for iot and lan gateways
This commit is contained in:
parent
e55dd35605
commit
d5d6176b13
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ subnet {{ intnet | ansible.utils.ipaddr('network') }} netmask {{ intnet | ansibl
|
|||
{% for hostname in hostvars %}
|
||||
{% if hostvars[hostname]['network_interfaces'] is defined %}
|
||||
{% for interface in hostvars[hostname]['network_interfaces'] %}
|
||||
{% if interface['vlan'] == 20 and interface['mac'] is defined %}
|
||||
{% if interface['vlan'] == network_interfaces[0].vlan and interface['mac'] is defined %}
|
||||
{% if interface['ipaddr'] is defined %}
|
||||
{% set ipaddr = interface['ipaddr'] %}
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue