AWX ans vmware SDK

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,

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. :slight_smile:

Kind Regards,
Nico

Hello,i have same problem, how did you solve the problem?

Thanks
Mattia

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

Also. Have you got the vmware python module in your execution environment or venv?