Fix the netplan defaults.

This commit is contained in:
Andrea Dell'Amico 2023-10-17 16:58:18 +02:00
parent 0f781ea08f
commit 7b838e598e
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ ubuntu_second_int_name: "enp4s0"
ubuntu_netplan_interfaces:
- name: "{{ ubuntu_second_int_name }}"
dhcp4: true
mtu: 1500
dhcp_overrides: true
disable_ipv6: false
ipv6_sysctl_value: 1
ipv6_sysctl_file: /etc/sysctl.d/10-ipv6-disable.conf

View File

@ -4,11 +4,11 @@ network:
{% for int in ubuntu_netplan_interfaces %}
{{ int.name }}:
dhcp4: {{ int.dhcp4 }}
mtu: {{ int.mtu }}
{% if int.dhcp_overrides | default(true) %}
dhcp4-overrides:
use-dns: false
use-routes: false
use-mtu: true
{% endif %}
{% endfor %}