vm-ansible/roles/netplan/templates/netplan.yaml

12 lines
250 B
YAML
Raw Normal View History

# {{ansible_managed}}
network:
version: 2
renderer: networkd
ethernets:
2022-04-13 19:23:12 +02:00
{{ ansible_default_ipv4.interface }}:
dhcp4: true
2022-02-05 19:10:11 +01:00
dhcp-identifier: mac
dhcp4-overrides:
use-routes: false
gateway4: {{default_gateway}}