I have not seen this error before, but what permissions are on
c:\Users\Adm\AppData\Local\Temp\ directory?

Do you get any more information if you run ansible with -vvvvvv option?



On Monday, February 24, 2020 at 9:16:46 AM UTC, Piyush Bansal wrote:
>
> 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/0d8a6ac6-10f1-44db-b2dc-2c221a558905%40googlegroups.com.

Reply via email to