Hello,
I am running win_ping for windows 2008R2 64bit server from ansible 2.8.2 & python version = 2.7.5. Below are connection parameters:
winrm
ssl
5986
ignore certificates
Admin user
Credentials are working fine and no issues.
While running this task I am getting following error. Never have faced such error before.
Please be so kind to suggest on this.
TASK [win_ping] *********************************************************************************************************************************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/windows/win_ping.ps1
Pipelining is enabled.
<a.b.c.d> ESTABLISH WINRM CONNECTION FOR USER: adm on PORT 5986 TO a.b.c.d
EXEC (via pipeline wrapper)
The full traceback is:
Failed to compile C# code:
error CS0013: Unexpected error writing metadata to file 'c:\Users\Adm\AppData\Local\Temp\xyz.dll' -- '��"'
At line:279 char:13
+ throw [InvalidOperationException]$msg
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], InvalidOperationException
+ FullyQualifiedErrorId : Failed to compile C# code:
error CS0013: Unexpected error writing metadata to file 'c:\Users\Adm\AppData\Local\Temp\xyz.dll' -- '��"'
ScriptStackTrace:
at Add-CSharpType, <No file>: line 279
at <ScriptBlock>, <No file>: line 19
at <ScriptBlock><End>, <No file>: line 137
at <ScriptBlock>, <No file>: line 7
fatal: [a.b.c.d]: FAILED! => changed=false
msg: |-
internal error: failed to run exec_wrapper action module_powershell_wrapper: Failed to compile C# code:
error CS0013: Unexpected error writing metadata to file 'c:\Users\Adm\AppData\Local\Temp\xyz.dll' -- '"'
Let me know if you need further details...!!
I have changed the dll files,IP address, user etc details for obvious security reasons.
Thanks,
Piyush