{"action":"closed","number":3211,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3211","id":62231072,"html_url":"https://github.com/ansible/ansible-modules-core/pull/3211","diff_url":"https://github.com/ansible/ansible-modules-core/pull/3211.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/3211.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3211","number":3211,"state":"closed","locked":false,"title":"Add 'root_device_type' filter to ec2_ami_find module","user":{"login":"filipenf","id":1359293,"avatar_url":"https://avatars.githubusercontent.com/u/1359293?v=3","gravatar_id":"","url":"https://api.github.com/users/filipenf","html_url":"https://github.com/filipenf","followers_url":"https://api.github.com/users/filipenf/followers","following_url":"https://api.github.com/users/filipenf/following{/other_user}","gists_url":"https://api.github.com/users/filipenf/gists{/gist_id}","starred_url":"https://api.github.com/users/filipenf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipenf/subscriptions","organizations_url":"https://api.github.com/users/filipenf/orgs","repos_url":"https://api.github.com/users/filipenf/repos","events_url":"https://api.github.com/users/filipenf/events{/privacy}","received_events_url":"https://api.github.com/users/filipenf/received_events","type":"User","site_admin":false},"body":"##### Issue Type:\r\n\r\n - Feature Pull Request\r\n\r\n##### Plugin Name:\r\n\r\n- `ec2_ami_find` module\r\n\r\n##### Summary:\r\n\r\nAdd support to filter by root_device_type. This is useful when using general-purpose AMIs like Amazon Linux and the user needs it to guarantee it is EBS-backed (or instance-store).\r\n\r\n##### Example:\r\n```\r\nansible -i localhost, --connection local -m ec2_ami_find -a 'owner=amazon name=\"amzn-ami-hvm*\" region=us-east-1 sort=name sort_order=descending root_device_type=ebs' all\r\nlocalhost | SUCCESS => {\r\n    \"changed\": false,\r\n    \"results\": [\r\n        {\r\n            \"ami_id\": \"ami-ac8ab6c6\",\r\n            \"architecture\": \"x86_64\",\r\n            \"block_device_mapping\": {\r\n                \"/dev/xvda\": {\r\n                    \"delete_on_termination\": true,\r\n                    \"encrypted\": false,\r\n                    \"size\": 8,\r\n                    \"snapshot_id\": \"snap-538d3ec5\",\r\n                    \"volume_type\": \"gp2\"\r\n                }\r\n            },\r\n            \"creationDate\": \"2016-02-27T22:38:44.000Z\",\r\n            \"description\": \"Amazon Linux AMI 2016.03.rc-0 x86_64 HVM GP2\",\r\n            \"hypervisor\": \"xen\",\r\n            \"is_public\": true,\r\n            \"location\": \"amazon/amzn-ami-hvm-2016.03.rc-0.x86_64-gp2\",\r\n            \"name\": \"amzn-ami-hvm-2016.03.rc-0.x86_64-gp2\",\r\n            \"owner_id\": \"137112412989\",\r\n            \"platform\": null,\r\n            \"root_device_name\": \"/dev/xvda\",\r\n            \"root_device_type\": \"ebs\",\r\n            \"state\": \"available\",\r\n            \"tags\": {},\r\n            \"virtualization_type\": \"hvm\"\r\n        }\r\n    ]\r\n}\r\n```\r\n","created_at":"2016-03-09T13:53:11Z","updated_at":"2016-03-23T16:32:20Z","closed_at":"2016-03-23T16:32:20Z","merged_at":null,"merge_commit_sha":"7c2a692d1bd33e94623993deff053d100993dbe6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3211/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3211/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3211/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/9d29c7489c890ada0c0ffedd94a6ad21c67d9107","head":{"label":"filipenf:feature/ami_find_root_device_filter","ref":"feature/ami_find_root_device_filter","sha":"9d29c7489c890ada0c0ffedd94a6ad21c67d9107","user":{"login":"filipenf","id":1359293,"avatar_url":"https://avatars.githubusercontent.com/u/1359293?v=3","gravatar_id":"","url":"https://api.github.com/users/filipenf","html_url":"https://github.com/filipenf","followers_url":"https://api.github.com/users/filipenf/followers","following_url":"https://api.github.com/users/filipenf/following{/other_user}","gists_url":"https://api.github.com/users/filipenf/gists{/gist_id}","starred_url":"https://api.github.com/users/filipenf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipenf/subscriptions","organizations_url":"https://api.github.com/users/filipenf/orgs","repos_url":"https://api.github.com/users/filipenf/repos","events_url":"https://api.github.com/users/filipenf/events{/privacy}","received_events_url":"https://api.github.com/users/filipenf/received_events","type":"User","site_admin":false},"repo":{"id":24639202,"name":"ansible-modules-core","full_name":"filipenf/ansible-modules-core","owner":{"login":"filipenf","id":1359293,"avatar_url":"https://avatars.githubusercontent.com/u/1359293?v=3","gravatar_id":"","url":"https://api.github.com/users/filipenf","html_url":"https://github.com/filipenf","followers_url":"https://api.github.com/users/filipenf/followers","following_url":"https://api.github.com/users/filipenf/following{/other_user}","gists_url":"https://api.github.com/users/filipenf/gists{/gist_id}","starred_url":"https://api.github.com/users/filipenf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipenf/subscriptions","organizations_url":"https://api.github.com/users/filipenf/orgs","repos_url":"https://api.github.com/users/filipenf/repos","events_url":"https://api.github.com/users/filipenf/events{/privacy}","received_events_url":"https://api.github.com/users/filipenf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/filipenf/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/filipenf/ansible-modules-core","forks_url":"https://api.github.com/repos/filipenf/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/filipenf/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/filipenf/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/filipenf/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/filipenf/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/filipenf/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/filipenf/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/filipenf/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/filipenf/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/filipenf/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/filipenf/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/filipenf/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/filipenf/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/filipenf/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/filipenf/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/filipenf/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/filipenf/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/filipenf/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/filipenf/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/filipenf/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/filipenf/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/filipenf/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/filipenf/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/filipenf/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/filipenf/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/filipenf/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/filipenf/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/filipenf/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/filipenf/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/filipenf/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/filipenf/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/filipenf/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/filipenf/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/filipenf/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/filipenf/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/filipenf/ansible-modules-core/deployments","created_at":"2014-09-30T13:31:25Z","updated_at":"2014-09-30T12:17:36Z","pushed_at":"2016-03-16T20:39:37Z","git_url":"git://github.com/filipenf/ansible-modules-core.git","ssh_url":"git@github.com:filipenf/ansible-modules-core.git","clone_url":"https://github.com/filipenf/ansible-modules-core.git","svn_url":"https://github.com/filipenf/ansible-modules-core","homepage":"","size":7699,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"1a2a8e152fa8b254d460817a54b4e14439a55801","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":24474126,"name":"ansible-modules-core","full_name":"ansible/ansible-modules-core","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-core","forks_url":"https://api.github.com/repos/ansible/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-core/deployments","created_at":"2014-09-25T20:28:25Z","updated_at":"2016-03-21T19:30:07Z","pushed_at":"2016-03-23T16:28:15Z","git_url":"git://github.com/ansible/ansible-modules-core.git","ssh_url":"git@github.com:ansible/ansible-modules-core.git","clone_url":"https://github.com/ansible/ansible-modules-core.git","svn_url":"https://github.com/ansible/ansible-modules-core","homepage":"","size":14637,"stargazers_count":619,"watchers_count":619,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1420,"mirror_url":null,"open_issues_count":986,"forks":1420,"open_issues":986,"watchers":619,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3211"},"html":{"href":"https://github.com/ansible/ansible-modules-core/pull/3211"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3211"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3211/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3211/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3211/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/9d29c7489c890ada0c0ffedd94a6ad21c67d9107"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":0,"commits":1,"additions":10,"deletions":1,"changed_files":1}}