Hi Team,
i am new to Ansible, and i am trying to connect windows host and getting
below error:
[****@**** ~]$ ansible windows -m win_ping --ask-vault-pass -vvv
Using /etc/ansible/ansible.cfg as config file
Vault password:
Using module file
/usr/lib/python2.7/site-packages/ansible/modules/core/windows/win_ping.ps1
<****> ESTABLISH WINRM CONNECTION FOR USER: khannaA.oc on PORT 5986 TO ****
****** | UNREACHABLE! => {
"changed": false,
"msg": "ssl: ('Connection aborted.', error(104, 'Connection reset by
peer'))",
"unreachable": true
My Ansible version is::
$ ansible --version
ansible 2.2.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
my windows.yml file is:
ansible_user: ******
ansible_password: ******
ansible_port: 5986
ansible_connection: winrm
#ansible_winrm_scheme: http
# The following is necessary for Python 2.7.9+ (or any older Python that
has backported SSLContext, eg, Python 2.7.5 on RHEL7) when using default
WinRM self-signed certificates:
ansible_winrm_server_cert_validation: ignore
i am able to ping/telnet to the windows host from ansible master.
Please suggest.
Thanks,
Akshay
--
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/38cca74b-9d52-450b-854d-2026d0efacd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.