From 8ddc94bb631878cdd2d1de074b31cd7022626eee Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 6 Oct 2023 13:55:55 +0200 Subject: [PATCH] Second interface name as standalone variable --- defaults/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index b088e67..2aeb62d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -26,8 +26,9 @@ sysctl_custom_options: [] # sysctlfile_state: '{{ sysctl_custom_file_state }}' ubuntu_configure_additional_interfaces: true +ubuntu_second_int_name: "enp8s0" ubuntu_netplan_interfaces: - - name: "enp8s0" + - name: "{{ ubuntu_second_int_name }}" dhcp4: true mtu: "{{ ansible_enp8s0.mtu }}" disable_ipv6: false