Folks,
    I have an Ansible server and a Windows PowerShell server with PowerCli.
I encapsulate PowerCli commands within PowerShell scripts and call them in 
Ansible.

It works on one Windows server and doesn't on another.
Getting error as below
"Connect-VIServer        Exception \r\nof type 
'System.OutOfMemoryException' was thrown. 
NotSpecified: (:) [Connect-VIServer], ViError\r\n+ FullyQualifiedErrorId : 
Client20_ConnectivityServiceImpl_Reconnect_Excep 
\r\ntion,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServer\r\n\r\nGet-Datacenter
 
: Get-Datacenter        
You are not \r\ncurrently connected to any servers. Please connect first 
using a Connect \r\ncmdlet"
 
Is there any requirements that I need to follow? 
I'm able to run normal powershell scripts via ansible on both windows 
servers and am able to run powercli commands within the windows servers.

Kindly suggest.

Regards,
Rajesh

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/42748bbe-39b4-4545-b366-f20a32b54c1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to