title: Ansible adhoc command with sudo
body: <p>I'm tried to execute this command:</p>
  
  <pre><code>ansible somegroup -m raw -a "docker ps -a" --ask-pass -K --become-user root
  </code></pre>
  
  <p>But the error is:</p>
  
  <blockquote>
    <p>Got permission denied while trying to connect to the Docker daemon
    socket at unix:///var/run/docker.sock:</p>
  </blockquote>
  
  <p>How to correct set directives of ansible adhoc to execute under root using <code>sudo su -</code>?</p>