From a76dfc7b37800de53b5fc00b526cba243e3644b3 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sakurai Date: Tue, 4 Oct 2016 21:37:30 +0900 Subject: [PATCH] as `key` is a file path, it must be quoted --- plugins/provisioners/ansible/provisioner/host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/provisioner/host.rb b/plugins/provisioners/ansible/provisioner/host.rb index 2bc67c3fe..ac5b8b2db 100644 --- a/plugins/provisioners/ansible/provisioner/host.rb +++ b/plugins/provisioners/ansible/provisioner/host.rb @@ -255,7 +255,7 @@ module VagrantPlugins # Multiple Private Keys unless !config.inventory_path && @ssh_info[:private_key_path].size == 1 @ssh_info[:private_key_path].each do |key| - ssh_options << "-o IdentityFile=%s" % [ key.gsub('%', '%%') ] + ssh_options << "-o 'IdentityFile=%s'" % [ key.gsub('%', '%%') ] end end