ansible-role-systemd_networkd/templates/systemd-network-routes.j2

10 lines
180 B
Django/Jinja

# {{ ansible_managed }}
{% for route in item['static_routes'] %}
[Route]
Destination={{ route['cidr'] }}
Gateway={{ route['gateway'] }}
Metric={{ 20 + loop.index }}
{% endfor %}