Resolving #2194 (Ansible buffering output if run as subprocess)

This commit is contained in:
jabclab 2013-09-26 10:13:44 +01:00
parent e34d436f7e
commit c51952a68d
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ module VagrantPlugins
command << { command << {
:env => { :env => {
"ANSIBLE_FORCE_COLOR" => "true", "ANSIBLE_FORCE_COLOR" => "true",
"ANSIBLE_HOST_KEY_CHECKING" => "#{config.host_key_checking}" "ANSIBLE_HOST_KEY_CHECKING" => "#{config.host_key_checking}",
# Ensure Ansible output isn't buffered so that we receive ouput
# on a task-by-task basis.
"PYTHONUNBUFFERED" => 1
}, },
:notify => [:stdout, :stderr], :notify => [:stdout, :stderr],
:workdir => @machine.env.root_path.to_s :workdir => @machine.env.root_path.to_s