diff --git a/app/models/conversion_host.rb b/app/models/conversion_host.rb index d800b0d6df8..801ce7b75dd 100644 --- a/app/models/conversion_host.rb +++ b/app/models/conversion_host.rb @@ -332,7 +332,7 @@ def ansible_playbook(playbook, extra_vars = {}, miq_task_id = nil, auth_type = ' raise MiqException::MiqInvalidCredentialsError, _("Unknown auth type: #{auth.authtype}") end - extra_vars.each { |k, v| command << " --extra-vars '#{k}=#{v}'" } + command << " --extra-vars '#{extra_vars.to_json}'" result = AwesomeSpawn.run(command)