{% for intname in ansible_interfaces %} - {{ intname }}: {{ ansible_facts[ intname|replace('-', '_')]['macaddress']|default('-') }} {% endfor %}