ultrabirb-cluster/ansible/templates/netplan.yaml

15 lines
372 B
YAML
Raw Normal View History

2021-11-08 03:32:56 +01:00
# {{ansible_managed}}
network:
2021-11-08 04:02:27 +01:00
version: 2
2021-11-08 03:32:56 +01:00
ethernets:
{{ansible_default_ipv4.interface}}:
dhcp4: false
dhcp6: false
gateway4: {{ ansible_default_ipv4.gateway }}
addresses:
2021-11-11 18:47:19 +01:00
- "{{ ansible_default_ipv4.address }}/24"
2021-11-08 03:32:56 +01:00
routes:
{% for item in magic_routes %}
- to: {{ item }}
via: {{ magic_router_ip }}
{% endfor %}