Make Ansible extra_vars a hash instead of a string

This commit is contained in:
Collin Allen 2013-04-05 08:43:45 -07:00
parent 1957efb4e1
commit c2b43787c5
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module VagrantPlugins
ssh = @machine.ssh_info
options = %W[--private-key=#{ssh[:private_key_path]} --user=#{ssh[:username]}]
options << "--extra-vars=\"#{config.extra_vars}\"" if config.extra_vars
options << "--extra-vars=" + config.extra_vars.map{|k,v| "#{k}=#{v}"}.join(' ') if config.extra_vars
options << "--inventory-file=#{config.inventory_file}" if config.inventory_file
options << "--ask-sudo-pass" if config.ask_sudo_pass