Try running "ConfigureRemotingForAnsible.ps1" on the windows host you are
trying to manage with Ansible.
If that doesn't work try this command on the ansible host
telnet windows-host-name 5985
telnet windows-host-name 5986
If you see "Trying ..." but times out, the maybe the network ACL is not
opened.
On Thursday, December 14, 2017 at 2:44:18 PM UTC-8, Alexmil Reyes wrote:
>
> Hi,
>
> Thank you in advance to anyone who helps here. So am unable to run
> playbooks against our windows AWS instances. I was able to perform a
> win_ping but when I attempt to run this task on the same instances that I
> am able to ping I get an SSL Cert error. I have displayed all relevant
> information down below, let me know if any other information is required.
>
>
> *PLAYBOOK*
> ---
>
> - hosts: "{{target}}"
> roles:
> - windows
> vars_files:
> - "/home/ubuntu/infratools/ansible/inventory/group_vars/windows.yml"
>
>
> *TASK MAIN.YML*
> ---
> # Obtain information about a folder
> - win_stat:
> path: C:\Users
> register: folder_info
>
>
> *WIN_VARS*
> ansible_user: username
> ansible_password: "#####"
> ansible_port: 5986
> ansible_connection: winrm
> ansible_winrm_scheme: https
> # The following is necessary for Python 2.7.9+ when using default WinRM
> self-signed certificates:
> ansible_winrm_server_cert_validation: ignore
>
>
> *WIN_PING*
> 10.100.22.111 | SUCCESS => {
> "changed": false,
> "ping": "pong"
> }
>
>
> *ERROR*
> }
> fatal: [10.100.22.111]: UNREACHABLE! => {
> "changed": false,
> "msg": "ssl: HTTPSConnectionPool(host='10.100.22.111', 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
> }
>
>
>
--
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/d624d8ef-63b5-4e1b-8244-d03f4d779998%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.