So I've tried with two different environments, one vSphere 6, one with 5.5
and it does't seem to work. Always comes back with [SSL:
CERTIFICATE_VERIFY_FAILED] even when set to false

On Mon, Feb 15, 2016 at 12:31 PM, jonathan frappier <
[email protected]> wrote:

> Thanks! Really appreciate it, I'll poke at my local environment more.
> On Feb 15, 2016 12:20 PM, <[email protected]> wrote:
>
>> I've copied the playbook you've pasted, modified credentials and it works.
>>
>> ---
>> - hosts: localhost
>>   tasks:
>>     - name: Add ESXi host to vCenter
>>       local_action:
>>         module: vmware_host
>>         hostname: ip
>>         username: [email protected]
>>         password: xxxx
>>         datacenter_name: dc
>>         cluster_name: mgmt
>>         esxi_hostname: ip
>>         esxi_username: xxxx
>>         esxi_password: xxxx
>>         state: present
>>         validate_certs: false
>>
>>
>> On Monday, February 15, 2016 at 6:18:03 PM UTC+1, Jonathan Frappier wrote:
>>>
>>> With VMware_host or another module?
>>> On Feb 15, 2016 12:16 PM, <[email protected]> wrote:
>>>
>>>> I've just cloned and installed from devel - works for me.
>>>>
>>>> On Monday, February 15, 2016 at 6:09:02 PM UTC+1, Jonathan Frappier
>>>> wrote:
>>>>>
>>>>> Curious if anyone else has had luck with this in devel? I get
>>>>> "unsupported parameter for module: validate_certs"
>>>>>
>>>>>    - name: Add ESXi host to vCenter
>>>>>      local_action:
>>>>>        module: vmware_host
>>>>>        hostname: "{{ vcenter }}"
>>>>>        username: [email protected]
>>>>>        password: xxxx
>>>>>        datacenter_name: "{{ dc }}"
>>>>>        cluster_name: "{{ cl }}"
>>>>>        esxi_hostname: "{{ esxi }}"
>>>>>        esxi_username: xxxx
>>>>>        esxi_password: xxxx
>>>>>        state: present
>>>>>        validate_certs: false
>>>>>
>>>>>
>>>>> On Mon, Feb 15, 2016 at 11:52 AM, <[email protected]> wrote:
>>>>>
>>>>>> My PR for validate_certs was merged to the master branch (
>>>>>> https://github.com/ansible/ansible/pull/14261). I suggest using
>>>>>> devel, as it's already reviewed and merged (add validate_certs=false as
>>>>>> param for the module you're using)
>>>>>>
>>>>>> On Monday, February 15, 2016 at 5:49:18 PM UTC+1, Jonathan Frappier
>>>>>> wrote:
>>>>>>>
>>>>>>> Where do you suggest adding validate_certs=false? It wasn't obvious
>>>>>>> to me
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, January 27, 2016 at 3:23:42 PM UTC-5,
>>>>>>> [email protected] wrote:
>>>>>>>>
>>>>>>>> I've added skip_ssl argument to module_utils/vmware.py. Perhaps
>>>>>>>> that's not the best implementation...
>>>>>>>>
>>>>>>>> https://github.com/kamsz/ansible
>>>>>>>>
>>>>>>>> On Wednesday, January 13, 2016 at 6:54:29 PM UTC+1, Larry Smith
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Just getting started messing with these new 2.0 VMWare modules and
>>>>>>>>> seem to be stuck on an SSL error. Anyone know how to get around this? 
>>>>>>>>> Any
>>>>>>>>> info would be much appreciated.
>>>>>>>>>
>>>>>>>>> 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 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
>>>>>> [email protected].
>>>>>> To post to this group, send email to [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/ansible-project/efa7085b-62ec-4cc2-8900-ce4078788989%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/ansible-project/efa7085b-62ec-4cc2-8900-ce4078788989%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>> 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
>>>> [email protected].
>>>> To post to this group, send email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/ansible-project/5d4fe72d-3ccc-4d33-8705-0906469fbe1f%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/ansible-project/5d4fe72d-3ccc-4d33-8705-0906469fbe1f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> 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
>> [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/d0e71b1e-91e4-4481-9c80-a3191567d889%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/d0e71b1e-91e4-4481-9c80-a3191567d889%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BVhEZ9egt4Gvwo%2B1_HJeg3Wt5zOEbNLK0R-ntAfwW3WFFn%3Dnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to