Yoy need to install the pyvomi  through pip on your machine.  Create a virtual 
environment if needed

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: [email protected] <[email protected]> on 
behalf of [email protected] <[email protected]>
Sent: Thursday, July 1, 2021 2:34:46 AM
To: Ansible Project <[email protected]>
Subject: [ansible-project] vSphere Playbook runs from Ansible Tower but not 
when run with Ansible-Playbook

I've written a playbook to interact with a VMWare vSphere instance I have which 
will start up a set of VMs however I'm running into an issue where I can't run 
the playbook using ansible-playbook but I can run it from within Tower.

I have the community.vmware module installed on my node.

The error I'm getting relates to  PyVmomi not being installed or unable to be 
found by ansible-playbook:

"Failed to import the required Python library (PyVmomi) on bmtower-3-01's 
Python /usr/libexec/platform-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"

Any help would be much appreciated!

Thanks

--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ae3ea66e-3ba3-4256-974f-b44665955daan%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/ae3ea66e-3ba3-4256-974f-b44665955daan%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/SY6P282MB3196C45073F4F9E01E5BB4CDAD019%40SY6P282MB3196.AUSP282.PROD.OUTLOOK.COM.

Reply via email to