Ansible host inventory issues

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

192.168.1.2 | UNREACHABLE! => {
     "changed": false,
     "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)'))",
     "unreachable": true
}
192.168.12 | UNREACHABLE! => {
     "changed": false,
     "msg": "Authentication failure.",
     "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?