title: Error connecting: Error while fetching server API version: Ansible
body: <p>I'm very new at Ansible. I've run following ansible PlayBook and found those errors:</p>
  
  <pre><code>---
  - hosts: webservers
    remote_user: linx
    become: yes
    become_method: sudo
    tasks:
  
      - name: install docker-py
        pip: name=docker-py
  
      - name: Build Docker image from Dockerfile
        docker_image:
          name: web
          path: docker
          state: build
  
      - name: Running the container
        docker_container:
          image: web:latest
          path: docker
          state: running
  
      - name: Check if container is running
        shell: docker ps
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>FAILED! => {"changed": false, "msg": "Error connecting: Error while
    fetching server API version: ('Connection aborted.', error(2, 'No such
    file or directory'))"}</p>
  </blockquote>
  
  <p>And here is my folder structure:</p>
  
  <pre><code>.
  ├── ansible.cfg
  ├── docker
  │   └── Dockerfile
  ├── hosts
  ├── main.retry
  ├── main.yml
  </code></pre>
  
  <p>I'm confused that <code>docker</code> folder is already inside my local but don't know why I encountered those error message.</p>