Hi taem,
did you guys see this error ?
API version is 34
Unsupported API version. Received ‘{api_version}’ but "\n ^\nSyntaxError: invalid syntax\n
TASK [vcd : VCD USER creation] **************************************************************************************************************************************************************************************************************
task path: /data01/ansible/playbooks/roles/vcd/tasks/main.yml:1
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c ‘echo ~root && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp
”&& mkdir /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734 && echo ansible-tmp-1595300587.72-9132-3554205710734=“echo /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734
” ) && sleep 0’
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vcd_user.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-9052AXoSqK/tmpu50Pg7 TO /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/ /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/opt/rh/python27/root/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/ > /dev/null 2>&1 && sleep 0’
The full traceback is:
Traceback (most recent call last):
File “/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py”, line 102, in
_ansiballz_main()
File “/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py”, line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File “/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py”, line 40, in invoke_module
runpy.run_module(mod_name=‘ansible.modules.cloud.vmware.vcd_user’, init_globals=None, run_name=‘main’, alter_sys=True)
File “/opt/rh/python27/root/usr/lib64/python2.7/runpy.py”, line 188, in run_module
fname, loader, pkg_name)
File “/opt/rh/python27/root/usr/lib64/python2.7/runpy.py”, line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File “/opt/rh/python27/root/usr/lib64/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/tmp/ansible_vcd_user_payload_IAEjkU/ansible_vcd_user_payload.zip/ansible/modules/cloud/vmware/vcd_user.py”, line 161, in
File “/opt/rh/python27/root/usr/lib/python2.7/site-packages/pyvcloud/vcd/org.py”, line 1845
f"Unsupported API version. Received ‘{api_version}’ but "
^
SyntaxError: invalid syntax
fatal: [localhost]: FAILED! => {
“changed”: false,
“module_stderr”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ_vcd_user.py", line 40, in invoke_module\n runpy.run_module(mod_name=‘ansible.modules.cloud.vmware.vcd_user’, init_globals=None, run_name=‘main’, alter_sys=True)\n File "/opt/rh/python27/root/usr/lib64/python2.7/runpy.py", line 188, in run_module\n fname, loader, pkg_name)\n File "/opt/rh/python27/root/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File "/opt/rh/python27/root/usr/lib64/python2.7/runpy.py", line 72, in _run_code\n exec code in run_globals\n File "/tmp/ansible_vcd_user_payload_IAEjkU/ansible_vcd_user_payload.zip/ansible/modules/cloud/vmware/vcd_user.py", line 161, in \n File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pyvcloud/vcd/org.py", line 1845\n f"Unsupported API version. Received ‘{api_version}’ but "\n ^\nSyntaxError: invalid syntax\n”,
“module_stdout”: “”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1
}
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
[root@s605141sl7vl402 ansible]#