AWX ans vmware SDK

210 views
Skip to first unread message

stefan....@gmail.com

unread,
Oct 20, 2020, 12:52:53 PM10/20/20
to AWX Project
Hi,

I want to use the community.vmware.vmware_tag ( https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_tag_module.html) module but when I user it with AWX it throws the following error.
 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'com'
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (vSphere Automation SDK) on awx's Python /usr/libexec/platform-python. See https://code.vmware.com/web/sdk/7.0/vsphere-automation-python for more info. 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 think this is because AWX does not have the vSphere Automation SDK module that is a requirement. (is this a bug?)

I know how to add role and collection requirements but how do you add pip requirements to so that AWX can download the requirements. I can always hack the docker container but what is the right way to do this?


Thank you,

 

nico...@gmail.com

unread,
Oct 22, 2020, 1:35:15 AM10/22/20
to AWX Project
Hey Stefan,

we currently do another 'hack'. Check first with pip Module via Deligate_To. 
On Tower with old-school Hosts it is way more easy to manage custom-venvs - wondering how others set this up.

But I don't think it is a bug, since most requirements don't ship with awx. :) 

Kind Regards,
Nico

Mattia Maragno

unread,
Mar 6, 2022, 2:56:39 PM3/6/22
to AWX Project
Hello,i have same problem, how did you solve the problem?

Thanks
Mattia

Seth Foster

unread,
Mar 9, 2022, 3:41:00 PM3/9/22
to AWX Project
Hi Mattia,

Can you please provide more information about your setup, like the AWX version you are running. What specific error are you getting?

Thanks,

Seth

Wei-Yen Tan

unread,
Mar 9, 2022, 3:43:09 PM3/9/22
to Seth Foster, AWX Project
Also. Have you got the vmware python module in your execution environment or venv?

From: awx-p...@googlegroups.com <awx-p...@googlegroups.com> on behalf of Seth Foster <sfo...@redhat.com>
Sent: Thursday, March 10, 2022 9:41:00 AM
To: AWX Project <awx-p...@googlegroups.com>
Subject: [awx-project] Re: AWX ans vmware SDK
 
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/5c1c8f32-2730-4821-b272-9bd8c02f9bd2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages