support ansible for remote servers and vm
This commit is contained in:
parent
2281c9fc03
commit
a943f67da1
|
@ -233,6 +233,9 @@ module VagrantPlugins
|
||||||
|
|
||||||
proxy_cmd += " exec nc %h %p 2>/dev/null"
|
proxy_cmd += " exec nc %h %p 2>/dev/null"
|
||||||
|
|
||||||
|
ssh_options << "-o ProxyCommand='#{ proxy_cmd }'"
|
||||||
|
elsif @machine.provider_name == :libvirt && @machine.provider_config.connect_via_ssh
|
||||||
|
proxy_cmd = @machine.ssh_info[:proxy_command]
|
||||||
ssh_options << "-o ProxyCommand='#{ proxy_cmd }'"
|
ssh_options << "-o ProxyCommand='#{ proxy_cmd }'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue