The full traceback is:
Traceback (most recent call last):
File "/home/qsypoq/.ansible/tmp/ansible-tmp-1597846994.942776-2808-172921044836590/AnsiballZ_unix_vmware_desktop_vmmgmt.py", line 102, in <module>
_ansiballz_main()
File "/home/qsypoq/.ansible/tmp/ansible-tmp-1597846994.942776-2808-172921044836590/AnsiballZ_unix_vmware_desktop_vmmgmt.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/qsypoq/.ansible/tmp/ansible-tmp-1597846994.942776-2808-172921044836590/AnsiballZ_unix_vmware_desktop_vmmgmt.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.unix_vmware_desktop_vmmgmt', init_globals=None, run_name='__main__', alter_sys=True)
File "/usr/lib/python3.7/runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/ansible_unix_vmware_desktop_vmmgmt_payload_a9661w92/ansible_unix_vmware_desktop_vmmgmt_payload.zip/ansible/modules/unix_vmware_desktop_vmmgmt.py", line 210, in <module>
File "/tmp/ansible_unix_vmware_desktop_vmmgmt_payload_a9661w92/ansible_unix_vmware_desktop_vmmgmt_payload.zip/ansible/modules/unix_vmware_desktop_vmmgmt.py", line 207, in main
File "/tmp/ansible_unix_vmware_desktop_vmmgmt_payload_a9661w92/ansible_unix_vmware_desktop_vmmgmt_payload.zip/ansible/modules/unix_vmware_desktop_vmmgmt.py", line 166, in run_module
FileNotFoundError: [Errno 2] No such file or directory: 'DHCV3BKA93JSTMAGUO1JT3L95QGPK9TA'
fatal: [vmware-workstation-linux]: FAILED! => {
"changed": false,
"module_stderr": "Shared connection to 172.20.20.30 closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/home/qsypoq/.ansible/tmp/ansible-tmp-1597846994.942776-2808-172921044836590/AnsiballZ_unix_vmware_desktop_vmmgmt.py\", line 102, in <module>\r\n _ansiballz_main()\r\n File \"/home/qsypoq/.ansible/tmp/ansible-tmp-1597846994.942776-2808-172921044836590/AnsiballZ_unix_vmware_desktop_vmmgmt.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/qsypoq/.ansible/tmp/ansible-tmp-1597846994.942776-2808-172921044836590/AnsiballZ_unix_vmware_desktop_vmmgmt.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.unix_vmware_desktop_vmmgmt', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib/python3.7/runpy.py\", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File \"/usr/lib/python3.7/runpy.py\", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File \"/usr/lib/python3.7/runpy.py\", line 85, in _run_code\r\n exec(code, run_globals)\r\n File \"/tmp/ansible_unix_vmware_desktop_vmmgmt_payload_a9661w92/ansible_unix_vmware_desktop_vmmgmt_payload.zip/ansible/modules/unix_vmware_desktop_vmmgmt.py\", line 210, in <module>\r\n File \"/tmp/ansible_unix_vmware_desktop_vmmgmt_payload_a9661w92/ansible_unix_vmware_desktop_vmmgmt_payload.zip/ansible/modules/unix_vmware_desktop_vmmgmt.py\", line 207, in main\r\n File \"/tmp/ansible_unix_vmware_desktop_vmmgmt_payload_a9661w92/ansible_unix_vmware_desktop_vmmgmt_payload.zip/ansible/modules/unix_vmware_desktop_vmmgmt.py\", line 166, in run_module\r\nFileNotFoundError: [Errno 2] No such file or directory: 'DHCV3BKA93JSTMAGUO1JT3L95QGPK9TA'\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
After tests it looks like when getting the informations from API the vm.values array is inverted: