From 03d176d5a3d8ea328249d429b72ac33b63c32875 Mon Sep 17 00:00:00 2001 From: Jirayut Nimsaeng Date: Sun, 11 Dec 2016 09:46:12 +0700 Subject: [PATCH] Fix main public interface name not always be eth0. I found that in Xenial. The main public interface name is not always be eth0. So role bootstrap-host have to change from eth0 to ansible_default_ipv4.interface to get the correct default public interface name Change-Id: Iab26e48010b57240110e5235dd059622dd8057cd Closes-Bug: #1647107 --- tests/roles/bootstrap-host/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roles/bootstrap-host/defaults/main.yml b/tests/roles/bootstrap-host/defaults/main.yml index ebb0ddbe1f..ea239bd6fd 100644 --- a/tests/roles/bootstrap-host/defaults/main.yml +++ b/tests/roles/bootstrap-host/defaults/main.yml @@ -74,7 +74,7 @@ vlan_range: "172.29.248" netmask: "255.255.252.0" # # NICs -bootstrap_host_public_interface: eth0 +bootstrap_host_public_interface: "{{ ansible_default_ipv4.interface }}" bootstrap_host_encapsulation_interface: eth1 # #Encapsulations