{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4936","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4936/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4936/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4936/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4936","id":178015089,"number":4936,"title":"Error bring dockercompose up","user":{"login":"andreea-vld","id":22006164,"avatar_url":"https://avatars.githubusercontent.com/u/22006164?v=3","gravatar_id":"","url":"https://api.github.com/users/andreea-vld","html_url":"https://github.com/andreea-vld","followers_url":"https://api.github.com/users/andreea-vld/followers","following_url":"https://api.github.com/users/andreea-vld/following{/other_user}","gists_url":"https://api.github.com/users/andreea-vld/gists{/gist_id}","starred_url":"https://api.github.com/users/andreea-vld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreea-vld/subscriptions","organizations_url":"https://api.github.com/users/andreea-vld/orgs","repos_url":"https://api.github.com/users/andreea-vld/repos","events_url":"https://api.github.com/users/andreea-vld/events{/privacy}","received_events_url":"https://api.github.com/users/andreea-vld/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.1","name":"affects_2.1","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/docker","name":"docker","color":"e99695"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-20T09:50:07Z","updated_at":"2016-09-25T11:10:18Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\ndocker_service\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.1.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\nn/a\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nUbuntu 14.04\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nI am trying to call docker-compose from Ansible using docker_service module and I get an error with very few details. \r\nIf I call docker-compose directly, everything works correctly.\r\nOther tools versions:\r\nPython 2.7.6\r\npip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)\r\ndocker_py-1.9.0\r\ndocker-compose version 1.7.1, build 6c29830\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n1. Have a playbook containing a docker_service module\r\n2. Run playbook\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n - name: Start Docker-compose\r\n      docker_service:\r\n        project_src: ../docker-compose/\r\n        files: dev.yml\r\n        state: present\r\n        scale: \r\n          server1: 2\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nDocker-compose starts all containers without errors.\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nReceived following error (-vvvv) :\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nTASK [Start Docker-compose] **************************************\r\ntask path: /home/andreeav/workspace/docker-workspace/ansible/start.yml:17\r\n<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: andreeav\r\n<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1474364184.49-149863168021526 `\" && echo ansible-tmp-1474364184.49-149863168021526=\"` echo $HOME/.ansible/tmp/ansible-tmp-1474364184.49-149863168021526 `\" ) && sleep 0'\r\n<127.0.0.1> PUT /tmp/tmpzmVeR1 TO /home/andreeav/.ansible/tmp/ansible-tmp-1474364184.49-149863168021526/docker_service\r\n<127.0.0.1> EXEC /bin/sh -c 'LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 /usr/bin/python /home/andreeav/.ansible/tmp/ansible-tmp-1474364184.49-149863168021526/docker_service; rm -rf \"/home/andreeav/.ansible/tmp/ansible-tmp-1474364184.49-149863168021526/\" > /dev/null 2>&1 && sleep 0'\r\nfatal: [localhost]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"api_version\": null, \"build\": true, \"cacert_path\": null, \"cert_path\": null, \"debug\": false, \"definition\": null, \"dependencies\": true, \"docker_host\": null, \"files\": [\"dev.yml\"], \"filter_logger\": false, \"hostname_check\": false, \"key_path\": null, \"project_name\": null, \"project_src\": \"../docker-compose/\", \"recreate\": \"smart\", \"remove_images\": null, \"remove_orphans\": false, \"remove_volumes\": false, \"restarted\": false, \"scale\": {\"server1\": 2}, \"services\": null, \"ssl_version\": null, \"state\": \"present\", \"stopped\": false, \"timeout\": null, \"tls\": null, \"tls_hostname\": null, \"tls_verify\": null}, \"module_name\": \"docker_service\"}, \"msg\": \"Error bring dockercompose up - \"}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/249415785","html_url":"https://github.com/ansible/ansible-modules-core/issues/4936#issuecomment-249415785","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4936","id":249415785,"user":{"login":"Ohadbasan","id":2110558,"avatar_url":"https://avatars.githubusercontent.com/u/2110558?v=3","gravatar_id":"","url":"https://api.github.com/users/Ohadbasan","html_url":"https://github.com/Ohadbasan","followers_url":"https://api.github.com/users/Ohadbasan/followers","following_url":"https://api.github.com/users/Ohadbasan/following{/other_user}","gists_url":"https://api.github.com/users/Ohadbasan/gists{/gist_id}","starred_url":"https://api.github.com/users/Ohadbasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ohadbasan/subscriptions","organizations_url":"https://api.github.com/users/Ohadbasan/orgs","repos_url":"https://api.github.com/users/Ohadbasan/repos","events_url":"https://api.github.com/users/Ohadbasan/events{/privacy}","received_events_url":"https://api.github.com/users/Ohadbasan/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T11:10:18Z","updated_at":"2016-09-25T11:10:18Z","body":"I experience the exact same problem in ubuntu 16.04"}}
{"actor":{"display_login":"Ohadbasan"}}