validate_certs:yes

[root@localhost ~]# ansible-playbook cvm.yml

PLAY [Create a VM] ********************************************************************

TASK [Create a virtual machine on given ESXi hostname] ********************************
ok: [localhost]

TASK [Create snapshot] ****************************************************************
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "msg": "Unable to connect to vCenter or ESXi API at 192.168.0.107 on TCP/443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)"}

PLAY RECAP ****************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0 

Comments