From e8ceec650d0ba77d84033da7c61a81689a18b2f6 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Mon, 9 Jan 2017 22:13:06 +0100 Subject: [PATCH] Use eth1 instead eth0 --- tests/vagrant.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vagrant.yml b/tests/vagrant.yml index 8e387e2..35cb73c 100644 --- a/tests/vagrant.yml +++ b/tests/vagrant.yml @@ -13,7 +13,7 @@ dbpass: 'heCrE7*d2KEs' dbhost: localhost path: /var/www - url: "http://{{ ansible_default_ipv4['address'] }}" + url: "http://{{ hostvars[inventory_hostname]['ansible_' + (ansible_interfaces | difference(['lo']) | sort | list | last)]['ipv4']['address'] }}" title: wordpress admin_name: admin admin_email: root@localhost.localdomain