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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BLLie5aAqqO29OJzYRAuYJneyWeTjrL3TxsJxXudffnpimTKA%40mail.gmail.com.

Reply via email to