2024-11/07/jinja2_localhost_interface-list.j2
2024-11-27 15:08:08 +01:00

5 lines
146 B
Django/Jinja

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