sorry my mistake, *ansible_port:=5985* just typing mistake. and i changed port 5985 to 5986, that is why it is 5986
On Friday, August 4, 2017 at 10:43:30 AM UTC+5:30, benno joy wrote: > > Seems like it is using https 5986 and you have specified 5985 , maybe > because there is a ':' in your variable ansible_port:=5985, is this a > typo ? and make sure the variables are applied to the task/play > > > > On Fri, Aug 4, 2017 at 1:02 PM, Soniya panwar <[email protected] > <javascript:>> wrote: > > Thanks for the reply, > > i applied all these thing but not able to solve my problem. > > > > please look into the logs also and provide the possible solution: > > > > 2017-08-04 10:19:54,570 urllib3.connectionpool Starting new HTTPS > connection > > (1): X.X.X.X > > 2017-08-04 10:19:54,598 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 401 0 > > 2017-08-04 10:19:54,599 urllib3.connectionpool Resetting dropped > connection: > > X.X.X.X > > 2017-08-04 10:19:54,612 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 401 0 > > 2017-08-04 10:19:54,614 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 401 0 > > 2017-08-04 10:19:54,616 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 401 0 > > 2017-08-04 10:19:54,619 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 401 0 > > 2017-08-04 10:19:54,642 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 200 1632 > > 2017-08-04 10:19:54,648 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 200 847 > > 2017-08-04 10:19:54,653 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 500 1267 > > > > 2017-08-04 10:19:54,655 p=8231 u=root | [WARNING]: FATAL ERROR DURING > FILE > > TRANSFER: Traceback (most recent call last): File > > "/usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py", > line > > 267, in _winrm_exec self._winrm_send_input(self.protocol, > self.shell_id, > > command_id, data, eof=is_last) File "/usr/lib/python2.7/site- > > packages/ansible/plugins/connection/winrm.py", line 248, in > > _winrm_send_input protocol.send_message(xmltodict.unparse(rq)) > File > > "/usr/lib/python2.7/site- > > packages/winrm/protocol.py", line 207, in send_message return > > self.transport.send_message(message) File > > "/usr/lib/python2.7/site-packages/winrm/transport.py", > > line 202, in send_message raise WinRMTransportError('http', > > error_message) WinRMTransportError: (u'http', u'Bad HTTP response > returned > > from server. Code 500') > > > > 2017-08-04 10:19:54,658 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 200 757 > > 2017-08-04 10:19:54,660 urllib3.connectionpool https://X.X.X.X:5986 > "POST > > /wsman HTTP/1.1" 200 602 > > 2017-08-04 10:19:54,665 p=8231 u=root | X.X.X.X | FAILED! => { > > "failed": true, > > "msg": "winrm send_input failed" > > > > > > On Tuesday, August 1, 2017 at 6:04:32 PM UTC+5:30, To Versus wrote: > >> > >> I think you should run powershell script on your windows machine with > >> -EnableCredSSP option like below. > >> > >> powershell.exe -File ConfigureRemotingForAnsible.ps1 -EnableCredSSP > >> > >> If you have already do this, it is helpful to run ansible module with > >> -vvvvv option. > >> > >> ansible windows -m win_ping -vvvvv > >> > >> You can see the following statement on the command line if CredSSP > >> authentification mode is properly configured. > >> > >> WINRM CONNECT: transport=credssp > endpoint=https://<hostname>:<port>/wsman > >> > >> As a reference, below is my settings in group variable file: > >> > >> ansible_port: 5986 > >> ansible_connection: winrm > >> ansible_winrm_server_cert_validation: ignore > >> ansible_winrm_transport: credssp > >> > >> It is noted that I'm also using the same ansible version 2.3.1.0 on > CentOS > >> 7. > >> > > -- > > 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] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/ee0e29c2-237b-4fec-adc4-c13141d17f06%40googlegroups.com. > > > > > > 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/7599579b-1818-404d-a719-7d527b40e6ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
