# Ansible host inventory issues

**URL:** <https://forum.ansible.com/t/ansible-host-inventory-issues/24600>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [May 30, 2017, 4:15pm UTC](https://forum.ansible.com/t/ansible-host-inventory-issues/24600 "2017-05-30T16:15:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiao\_yu](https://avatars.discourse-cdn.com/v4/letter/x/e19b73/32.png) [@xiao\_yu](https://forum.ansible.com/u/xiao_yu)\
**Post date:** [May 30, 2017, 4:15pm UTC](https://forum.ansible.com/t/ansible-host-inventory-issues/24600/1 "2017-05-30T16:15:26Z")

</div>

Hi, I have this issues when I type this command in terminal; ansible -m ping all

192.168.1.2 | UNREACHABLE! =\> {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"changed": false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"msg": "ssl: HTTPSConnectionPool(host='192.168.1.2', port=5986): Max retries exceeded with url: /wsman(Caused by ConnectTimeoutError(\<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f934053f890\>, 'Connection to 192.168.1.2 timed out. (connnect timeout=30)'))",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"unreachable": true  
}  
192.168.12 | UNREACHABLE! =\> {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"changed": false,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"msg": "Authentication failure.",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"unreachable": true

I did this steps:  
 sudo apt install python-pip  
 sudo pip install “pywinrm\>=0.1.1”  
 sudo apt-get install libkrb5-dev  
 sudo pip install kerberos

then edit /etc/ansible/hosts and add this:  
[windows]  
192.168.1.2

[web]  
192.168.1.12

[windows:vars]  
ansible\_ssh\_user="Administrator"  
ansible\_ssh\_pass=123456  
ansible\_ssh\_port=5986  
ansible\_connection="winrm"  
ansible\_winrm\_server\_cert\_validation = "ignore"

Next edit /etc/nsible/ansible.cfgs  
look for “ask\_pass = True” and delete “#”.

Next, where do I put the ConfigureRemotingForAnsible.ps1  
I cannot execute this files. I searched online but they didn't give a specific steps. Anyone have any ideas to solve?
