From 5a3a5014558369189857ea2c796871f5886a397f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 11 Mar 2014 09:03:23 -0700 Subject: [PATCH] provisioners/ansible: request SSH info within provisoin [GH-3111] --- CHANGELOG.md | 2 ++ plugins/provisioners/ansible/provisioner.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab4b80c1f..b0b78f357 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ BUG FIXES: - core: Upgrading the home directory for Vagrant 1.5 uses the Vagrant temp dir. [GH-3095] - core: Assume a box isn't metadata if it exceeds 20 MB. [GH-3107] + - provisioners/ansible: Request SSH info within the provision method, + when we know its available. [GH-3111] ## 1.5.0 (March 10, 2014) diff --git a/plugins/provisioners/ansible/provisioner.rb b/plugins/provisioners/ansible/provisioner.rb index df36eb37c..164bd50c6 100644 --- a/plugins/provisioners/ansible/provisioner.rb +++ b/plugins/provisioners/ansible/provisioner.rb @@ -6,10 +6,10 @@ module VagrantPlugins super @logger = Log4r::Logger.new("vagrant::provisioners::ansible") - @ssh_info = @machine.ssh_info end def provision + @ssh_info = @machine.ssh_info # # 1) Default Settings (lowest precedence)