Commit c3ace3cb authored by julian.gethmann's avatar julian.gethmann

dynamic ansible var test

parent de8582a0
......@@ -4,7 +4,7 @@
{% for interface in ansible_interfaces %}
{% if interface.startswith('en') and interface not ansible_defaul_ipv6.interface and interface not ansible_defaul_ipv4.interface %}
DEVICE={{ interface }}
## HWADDR={{ ansible_{interface}.macaddress }}
## HWADDR={{ lookup('vars', 'ansible_' + interface + '.macaddress' }}
{% endif %}
AUTOCONNECT_PRIORITY=-500
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment