title: Ansible: Ping from remote host
body: <p>I have host A managed with Ansible. I have host B (Host B is not available in inventory) where I am executing few  commands with "delegate_to". Host C is my ansible controller. I am trying to ping a ipaddress from host B with "delegate_to". This ipaddress is somewhere on host D (Host D is not available in inventory), however I am not aware how to use ping module to to achieve this. So I am using command module. </p>
  
  <pre><code>- name: Ping net1
    command: 'ping -c 4 10.17.12.2'
    delegate_to: 10.17.10.85
  </code></pre>
  
  <p>How can I achieve same functionality in better way? </p>