无法使用Ansible连接到RemoteServer上的docker

我已经在RemoteServer(Ubuntu)上创build了一个DockerContainer。
我想通过DockerContainer运行AnsiblePlaybook。
但是我得到这个错误信息。

错误信息:

fatal: [container_name]: UNREACHABLE! => {"changed": false, "msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: ( umask 22 && mkdir -p \"` echo /tmp/ansible-tmp-1469447229.3-176202310979806 `\" && echo \"` echo /tmp/ansible-tmp-1469447229.3-176202310979806 `\" ), exited with result 1", "unreachable": true} 

剧本:

 - name: data container hosts: vps tasks: - name: hoge shell: "docker run --name={{container_name}} --dns=8.8.8.8 -t -d {{add_option}} {{image_name}} /bin/bash" - name: fuga add_host: name={{ container_name }} group="{{group_name}}" - name: prepare_production hosts: {{ container_name }} connection: docker roles: ~ 

这是本地的,因为它可以使用Ansible连接到Docker。