Team,
I’m trying to execute a task with vmware_tools but facing a strange SSL Error: Certificate verification failed. This issue occurs when executing a job from the foreman but the same code executed from CLI ( from where we have Vcenter communication with ansible-playbook).
My play has involved 3 steps:
1). List the registered virtual machines from Vcenter. - Output success
2). Find the guest name/UUID which is matched with job schedule ansible_host and trying find the VM folder path. Output success.
3). Now I will load custom variables like ansible_connection to vmware_tools and trying to execute ansible modules to execute jobs. Here we are facing issues and throwing errors like SL Error: Certificate verification failed.
Even enabled the verbosity level to 4 but it is not showing any further debugging information.
Here I’m attaching the test playbook, due to extension limitation we renamed yml with log here
.vmwaretoolslinuxansible_playbook_testing.log (1.4 KB) main_vars.log (171 Bytes) custom_vars.log (416 Bytes)