{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1275","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1275/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1275/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1275/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1275","id":74001049,"number":1275,"title":"Download s3 bucket folders with s3 module","user":{"login":"hyperfocus1337","id":5336988,"avatar_url":"https://avatars.githubusercontent.com/u/5336988?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperfocus1337","html_url":"https://github.com/hyperfocus1337","followers_url":"https://api.github.com/users/hyperfocus1337/followers","following_url":"https://api.github.com/users/hyperfocus1337/following{/other_user}","gists_url":"https://api.github.com/users/hyperfocus1337/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperfocus1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperfocus1337/subscriptions","organizations_url":"https://api.github.com/users/hyperfocus1337/orgs","repos_url":"https://api.github.com/users/hyperfocus1337/repos","events_url":"https://api.github.com/users/hyperfocus1337/events{/privacy}","received_events_url":"https://api.github.com/users/hyperfocus1337/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/aws","name":"aws","color":"c5def5"},{"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/feature_idea","name":"feature_idea","color":"006b75"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"},{"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":7,"created_at":"2015-05-07T14:11:58Z","updated_at":"2016-09-12T22:39:27Z","closed_at":null,"body":"**Issue Type:**\r\n\r\nBug report\r\n\r\n**Ansible Version:**\r\n\r\nansible 1.9.0.1\r\n\r\n**Environment:**\r\n\r\nMac OSX 10.10.3\r\nUbuntu 15.04\r\nDebian 8.0 Jessie\r\n\r\n**Summary:**\r\n\r\nError:\r\n```\r\nTASK: [website-8 | download files from s3] ************************************\r\nfailed: [localhost] => {\"failed\": true, \"parsed\": false}\r\nBECOME-SUCCESS-brdpbveuqavskoauqmcencknavplhmqh\r\nTraceback (most recent call last):\r\n  File \"/Users/hyper/.ansible/tmp/ansible-tmp-1431007310.5-57422028032290/s3\", line 2307, in <module>\r\n    main()\r\n  File \"/Users/hyper/.ansible/tmp/ansible-tmp-1431007310.5-57422028032290/s3\", line 371, in main\r\n    md5_local = hashlib.md5(open(dest, 'rb').read()).hexdigest()\r\nIOError: [Errno 21] Is a directory: '/xxx/'\r\n\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n```\r\n\r\n\r\n**Steps To Reproduce:**\r\n\r\n```ansible-playbook site.yml -i inventory/localhost -t download_s3_folder```\r\n\r\nwith play below:\r\n```\r\n- name: download files from s3\r\n  s3: bucket={{ bucket_name }}\r\n      region={{ aws_region }}\r\n      aws_access_key={{ aws_access_key }}\r\n      aws_secret_key={{ aws_secret_key }}\r\n      object=backups/\r\n      dest={{ local_backups_destination }}{{ short_url }}/\r\n      mode=get\r\n```\r\n\r\n\r\n**Expected Results:**\r\n\r\nDownload folder from s3 to local machine in the specified directory determined by variables. I'm guessing it's only possible to download files currently.\r\n\r\n**Actual Results:**\r\n\r\nError in steps to reproduce."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/246518092","html_url":"https://github.com/ansible/ansible-modules-core/issues/1275#issuecomment-246518092","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1275","id":246518092,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T22:39:27Z","updated_at":"2016-09-12T22:39:27Z","body":"@ansible, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}