Community VMware Deploy OVF With AWX

Hello, I am running AWX 22.3.

I am attempting to use community.vmware vmware_deploy_ovf to provision virtual machines to an ESXi host.

Can anyone confirm that they successfully used the `community.vmware.vmware_deploy_ovf module with AWX or Ansible Tower?

Thank you

"exception": "Traceback (most recent call last):
File "/home/ansible/.ansible/tmp/ansible-tmp-1715317037.6308992-45-196985842931468/AnsiballZ_vmware_deploy_ovf.py", line 107, in <module> 

ansiballz_main()
File "/home/ansible/.ansible/tmp/ansible-tmp-1715317037.6308992-45-196985842931468/AnsiballZ_vmware_deploy_ovf.py", line 99, in _ansiballz_main    
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)  
File "/home/ansible/.ansible/tmp/ansible-tmp-1715317037.6308992-45-196985842931468/AnsiballZ_vmware_deploy_ovf.py", line 48, in invoke_module    

run_name='__main__', alter_sys=True)  
File "/usr/lib64/python2.7/runpy.py", line 170, in run_module    
mod_name, loader, code, fname = _get_module_details(mod_name)  

File "/usr/lib64/python2.7/runpy.py", line 113, in _get_module_details    
code = loader.get_code(mod_name)  
File "/tmp/ansible_community.vmware.vmware_deploy_ovf_payload_uVRPvF/ansible_community.vmware.vmware_deploy_ovf_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_deploy_ovf.py", line 249    
raise ValueError("'{value}' is not a valid path")                                                   
SyntaxError: invalid syntax,

It would be helpful to know what ansible --version and what ansible-galaxy collection list community.vmware return, so we can compare them to what we might find in AWX 22.3.

Can you share your playbook yaml with us, and share the full stdout? (or a least, include the task name where you get the traceback). The error message seems to indicate that the given file path is invalid, which may mean it’s looking for it on AWX and it doesn’t exist there (especially if you’re delegating to localhost). It’s hard to say for sure what’s happening without seeing more context.

I was missing some python modules on the inventory host.

1 Like