Install AWX fails with Error while fetching server API version

I am trying to install AWX from my local to a remote server using the paybook AWX provided. I removed the dockerhub variables to create the images at runtime since the remote server does not have internet connection. Docker is installed and running, docker-py is also installed. I can do import docker; print(docker.version) from python so docker-py obviously is working.

Now when i run the install.yml playbook it fails at this step: [image_build : Build sdist builder image]

The error is:

The full traceback is:
  File "/tmp/ansible_KNeNaW/ansible_modlib.zip/ansible/module_utils/docker_common.py", line 203, in __init__
    super(AnsibleDockerClient, self).__init__(**self._connect_params)
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 99, in __init__
    self._version = self._retrieve_server_version()
  File "/usr/lib/python2.7/site-packages/docker/client.py", line 124, in _retrieve_server_version
    'Error while fetching server API version: {0}'.format(e)

fatal: [hostname_removed -> localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "api_version": "auto",
            "archive_path": null,
            "buildargs": {
                "http_proxy": "",
                "https_proxy": "",
                "no_proxy": ""
            },
            "cacert_path": null,
            "cert_path": null,
            "container_limits": null,
            "debug": false,
            "docker_host": "unix://var/run/docker.sock",
            "dockerfile": "Dockerfile.sdist",
            "force": true,
            "http_timeout": null,
            "key_path": null,
            "load_path": null,
            "name": "awx_sdist_builder",
            "nocache": false,
            "path": "GIT/awx/installer/roles/image_build/files",
            "pull": true,
            "push": false,
            "repository": null,
            "rm": true,
            "ssl_version": null,
            "state": "present",
            "tag": "2.0.0",
            "timeout": 60,
            "tls": false,
            "tls_hostname": "localhost",
            "tls_verify": false,
            "use_tls": "no"
        }
    },
    "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))"
}

`

`