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
we already specified that parameter in the playbook. same we can find in attached logs.
I’m suspecting something wrong in foreman generated job inventory, because when I’m trying to run the same job with plain inventory from CLI which is executing without any issue.