Hi
I am getting the following error when I try running a playbook to create a new VM from a template. It worked before I did yum update on the control server.
The full traceback is:
Traceback (most recent call last):
File “/root/.ansible/tmp/ansible-tmp-1545052613.45-19770221069605/AnsiballZ_vmware_guest.py”, line 113, in
_ansiballz_main()
File “/root/.ansible/tmp/ansible-tmp-1545052613.45-19770221069605/AnsiballZ_vmware_guest.py”, line 105, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File “/root/.ansible/tmp/ansible-tmp-1545052613.45-19770221069605/AnsiballZ_vmware_guest.py”, line 48, in invoke_module
imp.load_module(‘main’, mod, module, MOD_DESC)
File “/tmp/ansible_vmware_guest_payload_9wfO8a/main.py”, line 2396, in
File “/tmp/ansible_vmware_guest_payload_9wfO8a/main.py”, line 2322, in main
File “/tmp/ansible_vmware_guest_payload_9wfO8a/main.py”, line 798, in init
File “/tmp/ansible_vmware_guest_payload_9wfO8a/ansible_vmware_guest_payload.zip/ansible/module_utils/vmware.py”, line 777, in init
AttributeError: ‘PyVmomiHelper’ object has no attribute ‘module’
fatal: [localhost]: FAILED! => {
“changed”: false,
“module_stderr”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1545052613.45-19770221069605/AnsiballZ_vmware_guest.py", line 113, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1545052613.45-19770221069605/AnsiballZ_vmware_guest.py", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1545052613.45-19770221069605/AnsiballZ_vmware_guest.py", line 48, in invoke_module\n imp.load_module(‘main’, mod, module, MOD_DESC)\n File "/tmp/ansible_vmware_guest_payload_9wfO8a/main.py", line 2396, in \n File "/tmp/ansible_vmware_guest_payload_9wfO8a/main.py", line 2322, in main\n File "/tmp/ansible_vmware_guest_payload_9wfO8a/main.py", line 798, in init\n File "/tmp/ansible_vmware_guest_payload_9wfO8a/ansible_vmware_guest_payload.zip/ansible/module_utils/vmware.py", line 777, in init\nAttributeError: ‘PyVmomiHelper’ object has no attribute ‘module’\n”,
“module_stdout”: “”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1
}
It looks like with the yum update, it updated Ansible to 2.7.4 as well. On another RHEL7u3 machine with Ansible 2.7.0, the same playbook runs fine.
It seems like something with the updates caused the module to not work correctly. Has anyone seen this issue and how do we resolve it?
Thank in advance.