I recently upgraded to OSX High Sierra and now I get this whenever I try to use vmware_guest
in Ansible on my Mac:
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "PyVmomi
Python module required. Install using \"pip install PyVmomi\""}
As you can see it doesn't find pyVmomi. Note that this is delegated to localhost
, so it is running on my Mac, not on some remote server. I have tried to install and reinstall pyVmomi, and even reinstalled my whole python installation. As you can see, the module is there:
➜ environment git:(rhel) python -c "from pyVmomi import vim"
➜ environment git:(rhel) python2 -c "from pyVmomi import vim"
➜ environment git:(rhel) python3 -c "from pyVmomi import vim"
I am using:
- Python 2.7.14 installed using homebrew
- Ansible 2.5.0 installed using pip
- OSX High Sierra