15 lines
354 B
YAML
15 lines
354 B
YAML
|
# {{ansible_managed}}
|
||
|
version: 2
|
||
|
network:
|
||
|
ethernets:
|
||
|
{{ansible_default_ipv4.interface}}:
|
||
|
dhcp4: false
|
||
|
dhcp6: false
|
||
|
gateway4: {{ ansible_default_ipv4.gateway }}
|
||
|
addresses:
|
||
|
- "{{ ansible_host }}/24"
|
||
|
routes:
|
||
|
{% for item in magic_routes %}
|
||
|
- to: {{ item }}
|
||
|
via: {{ magic_router_ip }}
|
||
|
{% endfor %}
|