{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/13309","labels_url":"https://api.github.com/repos/ansible/ansible/issues/13309/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/13309/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/13309/events","html_url":"https://github.com/ansible/ansible/issues/13309","id":118946605,"number":13309,"title":"Ansible Docker Module - Not working with my particular configuration","user":{"login":"sarlindo","id":6406166,"avatar_url":"https://avatars.githubusercontent.com/u/6406166?v=3","gravatar_id":"","url":"https://api.github.com/users/sarlindo","html_url":"https://github.com/sarlindo","followers_url":"https://api.github.com/users/sarlindo/followers","following_url":"https://api.github.com/users/sarlindo/following{/other_user}","gists_url":"https://api.github.com/users/sarlindo/gists{/gist_id}","starred_url":"https://api.github.com/users/sarlindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarlindo/subscriptions","organizations_url":"https://api.github.com/users/sarlindo/orgs","repos_url":"https://api.github.com/users/sarlindo/repos","events_url":"https://api.github.com/users/sarlindo/events{/privacy}","received_events_url":"https://api.github.com/users/sarlindo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-26T00:19:42Z","updated_at":"2015-11-26T00:19:42Z","closed_at":null,"body":"I am running into an issue when trying to run the following ansible docker task.\r\n\r\nVersion Info:\r\n\r\nansible 1.9.4\r\ndocker 1.9.1 API version:  1.21\r\n\r\nAnsible Task:\r\n\r\n- name: consul container\r\n  docker:\r\n    name: consul\r\n    image: progrium/consul\r\n    state: reloaded\r\n    pull: always\r\n    net: bridge\r\n    ports:\r\n    - \"192.168.33.10:8300:8300\"\r\n    - \"192.168.33.10:8301:8301\"\r\n    - \"192.168.33.10:8301:8301/udp\"\r\n    - \"192.168.33.10:8302:8302\"\r\n    - \"192.168.33.10:8302:8302/udp\"\r\n    - \"192.168.33.10:8400:8400\"\r\n    - \"192.168.33.10:8500:8500\"\r\n    - \"172.17.0.1:153:53/udp\"\r\n    volumes:\r\n    - /mnt:/data\r\n    command:\r\n     - \"-server -advertise 192.168.33.10 -bootstrap-expect 1 -ui-dir /ui\"\r\n\r\nAnsible task error message:\r\n\r\n\r\nTASK: [consulserver | consul container] *************************************** \r\nfailed: [node1] => {\"failed\": true, \"parsed\": false}\r\n\r\nBECOME-SUCCESS-uwdnfeyqupcdtngwerroooqaujvhwjlw\r\nTraceback (most recent call last):\r\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1448489567.48-276009549745537/docker\", line 3185, in <module>\r\n    main()\r\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1448489567.48-276009549745537/docker\", line 1542, in main\r\n    reloaded(manager, containers, count, name)\r\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1448489567.48-276009549745537/docker\", line 1417, in reloaded\r\n    containers.refresh()\r\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1448489567.48-276009549745537/docker\", line 1352, in refresh\r\n    self.deployed = self.manager.get_deployed_containers()\r\n  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1448489567.48-276009549745537/docker\", line 1169, in get_deployed_containers\r\n    command = command.strip()\r\nAttributeError: 'list' object has no attribute 'strip'\r\nOpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: mux_client_request_session: master session id: 2\r\nShared connection to 127.0.0.1 closed.\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n\r\n\r\nAny pointers as to where to look would be great.\r\n"}}