title: Using ping on localhost in a playbook
body: <p>I am unable to run ping commands from a ansible host (using localhost, see below).</p>
  
  <p>I built a simple playbook to run ping using the command module:</p>
  
  <pre><code>---
  #
  - name: GET INFO
    hosts: localhost
  
    tasks:
      - name: return motd to registered var
        command: "/usr/bin/ping 10.39.120.129"
        register: mymotd
  
      - name: debug output
        debug: var=mymotd
  </code></pre>
  
  <p>However, I this error: "ping: socket: Operation not permitted"</p>
  
  <p>Seems like there is a permissions issue. However, looking at the /usr/bin directory, it looks like ping would be executable to me:</p>
  
  <pre><code>    "-rwxr-xr-x.   1 root root      66176 Aug  4  2017 ping", 
  </code></pre>
  
  <p>I cannot become or use sudo, it seems like tower is locked down for that and I don't have the authority to change it either.</p>
  
  <p>Anyone have any suggestions? What brought me to this, is that I am trying to run ping in a custom module and getting a similar issue.</p>
  
  <p>Thanks</p>