title: connecting windows instances using win_ping
body: <p>I need to connect windows ec2 instances of aws using common username and password. Here is my ansible code :</p>
  
  <pre><code>      - win_ping:
          with_items: "{{ Ips }}"
          delegate_to: "{{ item }}"
          ansible_ssh_port: 5986
          ansible_connection: winrm
          ansible_winrm_server_cert_validation: ignore
  </code></pre>
  
  <p>It showing error like "ERROR! 'ansible_connection' is not a valid attribute for a Task. When i pass this as variable file ,playbook itself running in port 5986.So how can i connect windows host with my user and password from linux using ansible??</p>
  
  <p>Thanks</p>