2025-03/07/jinja2_localhost_interface-list.j2
2025-03-26 11:12:15 +01:00

5 lines
146 B
Django/Jinja

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