{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3118","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3118/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3118/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3118/events","html_url":"https://github.com/ansible/ansible-modules-core/pull/3118","id":136399794,"number":3118,"title":"Allow ec2_vol to pick a free non-root /dev/* slot","user":{"login":"alxnov","id":680802,"avatar_url":"https://avatars.githubusercontent.com/u/680802?v=3","gravatar_id":"","url":"https://api.github.com/users/alxnov","html_url":"https://github.com/alxnov","followers_url":"https://api.github.com/users/alxnov/followers","following_url":"https://api.github.com/users/alxnov/following{/other_user}","gists_url":"https://api.github.com/users/alxnov/gists{/gist_id}","starred_url":"https://api.github.com/users/alxnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxnov/subscriptions","organizations_url":"https://api.github.com/users/alxnov/orgs","repos_url":"https://api.github.com/users/alxnov/repos","events_url":"https://api.github.com/users/alxnov/events{/privacy}","received_events_url":"https://api.github.com/users/alxnov/received_events","type":"User","site_admin":false},"labels":[{"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/core_review","name":"core_review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T14:21:12Z","updated_at":"2016-03-02T15:32:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3118","html_url":"https://github.com/ansible/ansible-modules-core/pull/3118","diff_url":"https://github.com/ansible/ansible-modules-core/pull/3118.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/3118.patch"},"body":"##### Issue Type:\r\n - Feature Pull Request\r\n\r\n##### Plugin Name:\r\n\r\nec2_vol\r\n\r\n##### Ansible Version:\r\n\r\n```\r\nansible 2.1.0 (devel 03c33053aa) last updated 2016/02/24 11:07:49 (GMT -400)\r\n```\r\n\r\n##### Summary:\r\n\r\nec2_vol requires the user to specify an explicit device_name. It can be improved by allowing an option to allow ebs volumes to be attached to a free non-root device rather than to have to know it in advance, making ec2_vol more useful for reusable ansible snippets, especially when finding and re-attaching volumes by Name.\r\n\r\n##### Example usage:\r\n\r\n```\r\n- ec2_vol:\r\n    instance: \"i-aaaaaaaaa\"\r\n    name: \"some-existing-vol-name\"\r\n    device_name: \"/dev/xvd{}\"\r\n```\r\n##### Example output:\r\n\r\n```\r\n<127.0.0.1> REMOTE_MODULE ec2_vol snapshot='' volume_size=2 device_name='/dev/xvd{}' region=us-east-1 instance=i-aaaaaaaa zone=us-east-1b name=my-named-volume\r\nchanged: [test_host -> 127.0.0.1] => {\"changed\": true, \"device\": \"/dev/xvdf\", \"volume\": {\"attachment_set\": {\"attach_time\": \"2016-02-24T15:01:19.000Z\", \"deleteOnTermination\": \"false\", \"device\": \"/dev/xvdf\", \"instance_id\": \"i-aaaaaaaa\", \"status\": \"attached\"}, \"create_time\": \"2016-02-24T15:01:10.890Z\", \"encrypted\": true, \"id\": \"vol-80eac85f\", \"iops\": null, \"size\": 2, \"snapshot_id\": \"\", \"status\": \"in-use\", \"tags\": {\"Name\": \"my-named-volume\"}, \"type\": \"standard\", \"zone\": \"us-east-1b\"}, \"volume_id\": \"vol-bbbbbbbb\", \"volume_type\": \"standard\"}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/191288919","html_url":"https://github.com/ansible/ansible-modules-core/pull/3118#issuecomment-191288919","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3118","id":191288919,"user":{"login":"gregdek","id":252125,"avatar_url":"https://avatars.githubusercontent.com/u/252125?v=3","gravatar_id":"","url":"https://api.github.com/users/gregdek","html_url":"https://github.com/gregdek","followers_url":"https://api.github.com/users/gregdek/followers","following_url":"https://api.github.com/users/gregdek/following{/other_user}","gists_url":"https://api.github.com/users/gregdek/gists{/gist_id}","starred_url":"https://api.github.com/users/gregdek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregdek/subscriptions","organizations_url":"https://api.github.com/users/gregdek/orgs","repos_url":"https://api.github.com/users/gregdek/repos","events_url":"https://api.github.com/users/gregdek/events{/privacy}","received_events_url":"https://api.github.com/users/gregdek/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T15:32:52Z","updated_at":"2016-03-02T15:32:52Z","body":"Thanks @alxnov for this PR. This module is maintained by the Ansible core team, so it can take a while for patches to be reviewed. Thanks for your patience."}}