From db242c4ac5c90b7b702ccc1260f108eae1d74689 Mon Sep 17 00:00:00 2001 From: Tim Pownall Date: Mon, 9 Jan 2017 11:08:04 -0600 Subject: [PATCH] Pull ansible facts for primary network device. --- playbooks/templates/interfaces.cfg.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/templates/interfaces.cfg.j2 b/playbooks/templates/interfaces.cfg.j2 index 48afa6a..43e27bc 100644 --- a/playbooks/templates/interfaces.cfg.j2 +++ b/playbooks/templates/interfaces.cfg.j2 @@ -2,8 +2,8 @@ auto lo iface lo inet loopback -auto p1p1 -iface p1p1 inet manual +auto {{ ansible_default_ipv4['interface'] }} +iface {{ ansible_default_ipv4['interface'] }} inet manual # Container Bridge auto br-pxe @@ -12,7 +12,7 @@ address {{ pxe_network.split('.')[0:3] | join('.') }}.{{ ansible_ssh_host.split( netmask 255.255.252.0 gateway {{ pxe_network.split('.')[0:3] | join('.') }}.1 dns-nameservers 8.8.8.8 8.8.4.4 -bridge_ports p1p1 +bridge_ports {{ ansible_default_ipv4['interface'] }} bridge_stp off bridge_waitport 0 bridge_fd 0