I think you will almost certainly need to delegate the script task to a machine 
which has powercli installed on it. I think the bare metal esxi host is 
unlikely to have powercli installed on it.

I am going to say again that it is well worth taking a look at the vmware_guest 
module (and associated VMware modules). You just delegate the VMware modules to 
your vcenter and declare what you want in your playbooks and roles, meaning no 
need to switch into powercli syntax when you need something doing in vsphere.

Hope this helps,

Jon

-- 
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/69c31383-a38e-4adb-8baf-e99bcf31c71e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to