provisioners/ansible: execute ansible with cwd of root_path [GH-2051]

This commit is contained in:
Mitchell Hashimoto 2013-08-29 11:55:58 -07:00
parent d90c3ba782
commit 9e476330f4
2 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,8 @@ BUG FIXES:
- guests/debian: Force bring up eth0. Fixes hangs on setting hostname.
[GH-2026]
- hosts/fedora: properly detect later CentOS versions. [GH-2008]
- provisioners/ansible: Execute ansible with a cwd equal to the
path where the Vagrantfile is. [GH-2051]
- provisioners/ansible: No longer report failure on every run. [GH-2007]
- provisioners/ansible: Properly handle extra vars with spaces. [GH-1984]
- provisioners/chef: Formatter option works properly. [GH-2058]

View File

@ -42,7 +42,8 @@ module VagrantPlugins
# Write stdout and stderr data, since it's the regular Ansible output
command << {
:env => { "ANSIBLE_FORCE_COLOR" => "true" },
:notify => [:stdout, :stderr]
:notify => [:stdout, :stderr],
:workdir => @machine.env.root_path.to_s
}
begin