interfaces: fix the templates.
This commit is contained in:
parent
23955f65c8
commit
721cf5d42c
|
@ -26,6 +26,7 @@ sysctl_custom_options: []
|
||||||
# sysctlfile_state: '{{ sysctl_custom_file_state }}'
|
# sysctlfile_state: '{{ sysctl_custom_file_state }}'
|
||||||
|
|
||||||
ubuntu_configure_additional_interfaces: false
|
ubuntu_configure_additional_interfaces: false
|
||||||
|
ubuntu_configure_additional_int_dhcp_overrides: true
|
||||||
ubuntu_second_int_name: "enp4s0"
|
ubuntu_second_int_name: "enp4s0"
|
||||||
ubuntu_netplan_interfaces:
|
ubuntu_netplan_interfaces:
|
||||||
- name: "{{ ubuntu_second_int_name }}"
|
- name: "{{ ubuntu_second_int_name }}"
|
||||||
|
|
|
@ -2,9 +2,9 @@ network:
|
||||||
version: 2
|
version: 2
|
||||||
ethernets:
|
ethernets:
|
||||||
{% for int in new_ints %}
|
{% for int in new_ints %}
|
||||||
{{ int.name }}:
|
{{ int }}:
|
||||||
dhcp4: {{ int.dhcp4 }}
|
dhcp4: true
|
||||||
{% if int.dhcp_overrides | default(true) %}
|
{% if ubuntu_configure_additional_int_dhcp_overrides | default(true) %}
|
||||||
dhcp4-overrides:
|
dhcp4-overrides:
|
||||||
use-dns: false
|
use-dns: false
|
||||||
use-routes: false
|
use-routes: false
|
||||||
|
|
Loading…
Reference in New Issue