0

I still have this error when I execute ansible playbook using vmware_guest module

"msg": "Failed to import the required Python library (PyVmomi) on vcenter's Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"
}

I have python-pyVmomi installled

drwxr-xr-x  2 root root   4096 oct.  15 23:04 pyVim
drwxr-xr-x  2 root root   4096 oct.  15 23:04 pyVmomi
drwxr-xr-x  2 root root   4096 oct.  15 23:04 pyvmomi-6.7.1.egg-info


ansible-playbook 2.9.27
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/diogene/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0]
Using /etc/ansible/ansible.cfg as config file

0 Answers0