Ansible with vmware, PyVmomi needs to be installed on ESX?

78 views
Skip to first unread message

arpan...@gmail.com

unread,
Nov 15, 2017, 5:39:17 AM11/15/17
to Ansible Project
Is it mandatory to install PyVmomi on Esx to talk with ansible.

http://docs.ansible.com/ansible/latest/vmware_vmkernel_module.html#id2.

Not able to install get-pip or PyVmomi  from EsxCLi.

=====
/usr # python get-pip.py
Traceback (most recent call last):
  File "get-pip.py", line 20061, in <module>
    main()
  File "get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap
    import pip
  File "/tmp/tmps24d2t/pip.zip/pip/__init__.py", line 21, in <module>
  File "/tmp/tmps24d2t/pip.zip/pip/_vendor/requests/__init__.py", line 62, in <module>
  File "/tmp/tmps24d2t/pip.zip/pip/_vendor/requests/packages/__init__.py", line 29, in 

<module>
ImportError: No module named urllib3

==========

# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup
  File "/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/__init__.py", line 

2, in <module>
  File "/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/extension.py", 

line 1, in <module>
ImportError: No module named core


=====================
Any help is appreciated.
Thanks
AMeda

Kai Stian Olstad

unread,
Nov 15, 2017, 7:26:39 AM11/15/17
to ansible...@googlegroups.com
On 15.11.2017 11:39, arpan...@gmail.com wrote:
> Is it mandatory to install PyVmomi on Esx to talk with ansible.

Not on the ESX, in the documentation is says "Requirements (on host that
executes module)"

By that it means the control machine aka. the machine runnning
ansible/ansible-playbook command.


--
Kai Stian Olstad

arpan...@gmail.com

unread,
Nov 15, 2017, 1:26:25 PM11/15/17
to Ansible Project
Thanks Kai for the clarification. It was useful.
Reply all
Reply to author
Forward
0 new messages