Fix the netplan defaults.
This commit is contained in:
parent
0f781ea08f
commit
7b838e598e
|
@ -30,7 +30,7 @@ ubuntu_second_int_name: "enp4s0"
|
||||||
ubuntu_netplan_interfaces:
|
ubuntu_netplan_interfaces:
|
||||||
- name: "{{ ubuntu_second_int_name }}"
|
- name: "{{ ubuntu_second_int_name }}"
|
||||||
dhcp4: true
|
dhcp4: true
|
||||||
mtu: 1500
|
dhcp_overrides: true
|
||||||
disable_ipv6: false
|
disable_ipv6: false
|
||||||
ipv6_sysctl_value: 1
|
ipv6_sysctl_value: 1
|
||||||
ipv6_sysctl_file: /etc/sysctl.d/10-ipv6-disable.conf
|
ipv6_sysctl_file: /etc/sysctl.d/10-ipv6-disable.conf
|
||||||
|
|
|
@ -4,11 +4,11 @@ network:
|
||||||
{% for int in ubuntu_netplan_interfaces %}
|
{% for int in ubuntu_netplan_interfaces %}
|
||||||
{{ int.name }}:
|
{{ int.name }}:
|
||||||
dhcp4: {{ int.dhcp4 }}
|
dhcp4: {{ int.dhcp4 }}
|
||||||
mtu: {{ int.mtu }}
|
|
||||||
{% if int.dhcp_overrides | default(true) %}
|
{% if int.dhcp_overrides | default(true) %}
|
||||||
dhcp4-overrides:
|
dhcp4-overrides:
|
||||||
use-dns: false
|
use-dns: false
|
||||||
use-routes: false
|
use-routes: false
|
||||||
|
use-mtu: true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue