Módulo win_chocolatey Ansible - Erro System.OutOfMemoryException

2

Estou tentando usar o Ansible para instalar software no Windows Server 2008 R2 através do módulo win_chocolatey. Não funciona, pois gera erro:

[ERROR] - Chocolatey had an error on WIN-2008r2 (with user Administrator): System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method) at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType, Object target) at System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator) at System.Management.Automation.Interpreter.LoopCompiler.CreateDelegate() at System.Management.Automation.Interpreter.EnterLoopInstruction.Compile(Object frameObj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()

O comando "choco install" funciona quando usado no servidor.

Eu tentei aumentar o limite de memória para o PowerShell e para o WinRM.

set-item wsman:localhost\Shell\MaxMemoryPerShellMB 2048

winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="2048"}'

O que mais poderia ser o problema?

    
por Vald 12.05.2017 / 15:59

1 resposta

2

Acontece que eu precisava dessa correção: link

Agora funciona.

    
por 12.05.2017 / 16:59