Resolving #2194 (Ansible buffering output if run as subprocess)
This commit is contained in:
parent
e34d436f7e
commit
c51952a68d
|
@ -41,7 +41,10 @@ module VagrantPlugins
|
|||
command << {
|
||||
:env => {
|
||||
"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],
|
||||
:workdir => @machine.env.root_path.to_s
|
||||
|
|
Loading…
Reference in New Issue