fatal: [localhost -> localhost]: FAILED! => {"apierror": "[Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed", "changed": false, "failed": true, "msg": "Unable to connect to vCenter or ESXi API on TCP/443."}
---
- hosts: all
connection: local
become: false
vars:
- datacenter_name: 'LAB'
- esxi_user: 'root'
- esxi_pass: 'vmware'
- pri_domain_name: 'everythingshouldbevirtual.local'
- vcenter_host: 'vcsa.{{ pri_domain_name }}'
tasks:
- name: create DataCenter
local_action: >
vmware_datacenter
hostname="{{ vcenter_host }}"
username="{{ esxi_user }}"
password="{{ esxi_pass }}"
datacenter_name="{{ datacenter_name }}"
state=present
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e3090414-fe2a-47e6-b8dd-77be4a19285e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/mvl7dq9nrwQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/efa7085b-62ec-4cc2-8900-ce4078788989%40googlegroups.com.
With VMware_host or another module?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5d4fe72d-3ccc-4d33-8705-0906469fbe1f%40googlegroups.com.
Thanks! Really appreciate it, I'll poke at my local environment more.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d0e71b1e-91e4-4481-9c80-a3191567d889%40googlegroups.com.
I'll add that I also tried on Ubuntu 15.04 w Python 2.7.10
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/mvl7dq9nrwQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5c292513-f39b-48ed-a3c2-7347251788f7%40googlegroups.com.
Thanks for the tips Julian! Hoping to show this off at work without any hacks. Don't want it to come off as glitchy and unsupportable
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/664781c6-3717-47e4-b5b3-3b8d384f0324%40googlegroups.com.
Thanks, look forward to testing. As I sit here now, I also wonder if this is a pyVmomi specific issue...
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/mvl7dq9nrwQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e0be4a9b-e2e0-4017-a326-339c14ef6c59%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4cdbb3a7-4d17-4942-b319-0854a1fee55e%40googlegroups.com.
we should add validate_certs=yes|no option as we do in other modules.
On Fri, Jan 15, 2016 at 1:09 AM, Larry Smith <mrles...@gmail.com> wrote:
> Yup. I know about the default self-signed but I would assume that either
> pyvmomi module and/or the Ansible documentation might explain on how to get
> around this error. Especially just for testing purposes. Thanks for the
> reply though.
>
> On Thursday, January 14, 2016 at 3:35:47 AM UTC-5, Marcus Franke wrote:
>>
>> Hi,
>>
>> by default VMware uses a self signed certificate for the vcenter web
>> interface.
>>
>> You could change this against an official one with a trust anchor your
>> system can verify or configure your play not to verify the certificate. If
>> that is possible, never used that module myself.
>>
>> Regards,
>> Marcus
>>
>>
>> Larry Smith <mrles...@gmail.com> schrieb am Mi., 13. Jan. 2016 18:54:
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to ansible-proje...@googlegroups.com.
>>> To post to this group, send email to ansible...@googlegroups.com.
>>> To view this discussion on the web visit
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
>
> For more options, visit https://groups.google.com/d/optout.
--
Brian Coca
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/99f882ae-5afe-4173-a2be-d5c5b1991da3%40googlegroups.com.