I’ve been facing SSL handshake errors when trying to deploy an OVA to vSphere using the community.vmware.vmware_deploy_ovf module in Ansible. Oddly enough, other modules like vmware_vm_info work just fine, and I can retrieve VM information without any issues. However, when it comes to deploying the OVA, the playbook fails every time with an SSL error.
Here’s what I’ve tried so far:
Set validate_certs: false
Added the vCenter CA to the system trust store
Verified the SSL certificate manually using openssl s_client -connect <vcenter>, and it shows that the certificate is validated
Added the vCenter to the NO_PROXY environment variable to bypass the proxy
Despite all of this, I still get SSL handshake errors with vmware_deploy_ovf, even though other tasks are working as expected.
Has anyone experienced something similar or have any suggestions on how to resolve this?
Can you post your task here? For the other user, they were trying to deploy an OVF/OVA from a URL. In that case, the file is downloaded directly to your vCenter and there is no option to skip certificate validation.
In that case, you must either update the vCenter cert store or download the file locally first and then deploy from your filesystem