trouble with pysphere

Setting up my first ansible run using the vsphere_guest mod. I’ve use ansible for some ad hock and it was really slick. So I decided to try and use with VMware.

found I needed pysphere installed. so I did that.

bryans-imac:~ johnson$ pip install -U pysphere
Requirement already up-to-date: pysphere in /Library/Python/2.7/site-packages/pysphere-0.1.8-py2.7.egg
bryans-imac:~ johnson$

should be fine now, or so I thought.

I am getting this error.

x.x.253.241 | FAILED >> {
“failed”: true,
“msg”: “pysphere module required”
}

is there something more I need to do to make it work?

Thanks,
Bryan

i would verify that the python that has pysphere and the one you use
ansible are one and the same, this is normally the cause of this type
of issue. Also note that pysphere needs to be installed on the machine
that executes the plugin, so if you are not one of: hosts: localhost
or connection: local, local_action or delegate_to: localhost, you
might be trying to execute on the target machine and not on the
'master'.

Thanks for the quick responce. I am running ansible from local computer, can you tell me how i can see if i am running the correct ansible from my workstation?