2024-11/07/jinja2_localhost_interface-list.j2

5 lines
146 B
Plaintext
Raw Normal View History

2024-11-27 14:08:08 +00:00
{% for intname in ansible_interfaces %}
- {{ intname }}: {{ ansible_facts[ intname|replace('-', '_')]['macaddress']|default('-') }}
{% endfor %}