Check whether these configurations are there in your host file..

ansible_user: admin
ansible_password: XXXXXXX
ansible_winrm_scheme: https
ansible_winrm_transport: credssp
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
validate_certs: false

On Thu 12 Apr, 2018, 17:33 Bishwajit Samanta, <
bishwajitsamanta1...@gmail.com> wrote:

> Share me your host file which you have configured in ansible, where you
> have decalared your connection type as winrm etc. May be i can look into it
> and help you.
>
> On Thursday, April 12, 2018 at 5:13:54 PM UTC+5:30, ishita pandey wrote:
>>
>> Hi team,
>>
>>
>> I am trying to setup winrm connection to windows 12 but getting below
>> error:
>>
>> <10.47.11.89> WINRM CONNECTION ERROR: the specified credentials were
>> rejected by the server Traceback (most recent call last): File
>> "/usr/lib/python2.6/site-packages/ansible/plugins/connection/winrm.py",
>> line 154, in _winrm_connect self.shell_id =
>> protocol.open_shell(codepage=65001) # UTF-8 File
>> "/var/lib/awx/venv/ansible/lib/python2.6/site-packages/winrm/protocol.py",
>> line 132, in open_shell res = self.send_message(xmltodict.unparse(req))
>> File
>> "/var/lib/awx/venv/ansible/lib/python2.6/site-packages/winrm/protocol.py",
>> line 207, in send_message return self.transport.send_message(message) File
>> "/var/lib/awx/venv/ansible/lib/python2.6/site-packages/winrm/transport.py",
>> line 179, in send_message raise InvalidCredentialsError("the specified
>> credentials were rejected by the server") InvalidCredentialsError: the
>> specified credentials were rejected by the server fatal: [10.47.11.89]:
>> UNREACHABLE! => { "changed": false, "msg": "basic: the specified
>> credentials were rejected by the server", "unreachable": true } to retry,
>> use: --limit @/var/lib/awx/.ansible/tmp/test_housekeeping_full.retry
>>
>> The user that i am trying is added to administrator group as well still
>> the issue.
>> Can someone please suggest.
>>
>> Regards,
>> Ishita
>>
> --
> 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-project+unsubscr...@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/6d37d54f-a341-40c3-941d-678cfe69b0a2%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6d37d54f-a341-40c3-941d-678cfe69b0a2%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 ansible-project+unsubscr...@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/CAPkwwd2z2EVDosuBGowaMEFCEgMC3EnKv4MuCAC%2BKHXvbsszww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to