All vCenter and ESXi servers require SSL encryption on all connections to enforce secure communication.
If you see the following warning while using Ansible VMware modules [warning], you need to enable SSL encryption for Ansible by installing the server’s SSL certificates on your Ansible control node or delegate node.
Unable to connect to vCenter or ESXi API at xx.xx.xx.xx on TCP/443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)
then, this means you need to add/install SSL certificate of vCenter or ESXi server in your Ansible control node.
The following instructions allow you to run your Ansible VMware modules with encrypted mode (viz.
Please follow the instructions depending upon your server to install SSL certificate.
.certsdirectory that contains two types of files. Files with a number as the extension (.0, .1, and so on) are root certificates.
/etc/vmware/ssldirectory to Ansible control node.