Need help for ansible ping

Please tell the steps to solve the issues. When I perform sudo ansible -m ping all , I have the following issues:

192.168.1.2 | FAILED! => {
      "failed": true,
      "msg": "winrm send_input failed"
}
192.168.1.12 | UNREACHABLE! => {
      "changed": false,
      "msg": "Authentication failure.",
      "unreachable": true
}

In my /etc/ansible/hosts

[windows]
192.168.1.2

[web]
192.168.1.12

[windows:vars]
ansible_ssh_user="Administrator"
ansible_ssh_pass=1234
ansible_ssh_port=5985
ansible_connection="winrm"
ansible_winrm_server_cert_validation = "ignore"