@jordan I completely agree. Although I have clearly stated in the
group_vars/windwos.yml file to ignore cert validation it does not appear to
acknowledge the setting.
With the tasks/main.yml file now looking like this:
---
# Obtain information about a folder
- debug:
var: ansible_winrm_server_cert_validation
- win_stat:
path: C:\Users
register: folder_info
I get the same result.
ubuntu@ip-x-x-x-x:~/infratools/ansible$ play playbooks/windows.yml -e
"target=tag_Name_R2_CSE03" -vvv
Using /home/ubuntu/infratools/ansible/ansible.cfg as config file
PLAYBOOK: windows.yml
*****************************************************************************************************************
1 plays in playbooks/windows.yml
PLAY [tag_Name_R2_CSE03]
**************************************************************************************************************
TASK [Gathering Facts]
****************************************************************************************************************
Using module file
/usr/lib/python2.7/dist-packages/ansible/modules/windows/setup.ps1
<x.x.x.x> ESTABLISH WINRM CONNECTION FOR USER: administrator on PORT 5986
TO x.x.x.x
fatal: [x.x.x.x]: UNREACHABLE! => {
"changed": false,
"msg": "ssl: HTTPSConnectionPool(host='x.x.x.x', port=5986): Max
retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, u'[SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),))",
"unreachable": true
}
On Friday, December 15, 2017 at 7:41:37 PM UTC-5, Jordan Borean wrote:
>
> For some reason the ansible_winrm_server_cert_validation: ignore var is
> not being set for your Windows host hence the error. Can you test out the
> following before your win_stat task when running on the Windows host.
>
> - debug:
> var: ansible_winrm_server_cert_validation
>
--
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/45856282-6ff2-4573-88eb-cede4187e139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.