{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/45568734","id":45568734,"diff_hunk":"@@ -0,0 +1,409 @@\n+#!/usr/bin/python\n+# This file is part of Ansible\n+#\n+# Ansible is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# Ansible is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.\n+DOCUMENTATION = '''\n+module: ec2_addresses\n+short_description: Allocate, associate, disassociate and release ec2 addresses.\n+    This module does not support EC2-Classic as its intended for\n+    private-addresses which are EC2-VPC only.\n+    Requires Boto3, botocore and json.\n+description:\n+    - Allocate and deallocate secondary private ip's from an interface\n+    - Associates and if required allocate Elastic IP to private IP\n+    - Disassociate Elastic IPs and release if required\n+version_added: \"2.0\"\n+options:\n+    type:\n+        description:\n+            - secondary_private allows for allocation of secondary\n+                private ip addresses to a given interface\n+            - eip_to_private allows for association of an elastic IP to\n+                a provided secondary private IP address. An EIP can be\n+                allocated if no EIP is provided\n+        required: true\n+        choices: [\"secondary_private\", \"eip_to_private\"]\n+    public_ip:\n+        description:\n+            - Elastic IP for use with either associating with a private_ip,\n+                or unassociating required: false.\n+        required: false\n+    private_ip:\n+        description:\n+            - Private IP address for either associating an EIP to,\n+                or unassociating an EIP from\n+        required: false\n+    count:\n+        description:\n+            - \"The number of secondary private IPs to ensure is attached\n+                to an interface. Note that AWS interface limits based on\n+                instance type do apply.\n+                Refer to http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI\n+                for more details.\"\n+    reassociation:\n+        description:\n+            - Allow an EIP to be reassociated to another private ip\n+                even if the EIP is associated to something else\n+        required: false\n+        choices: [\"yes\", \"no\"]\n+        default: no\n+    release_on_disassociation:\n+        description:\n+            - Release Elastic IP on disassocation from private IP address\n+        required: false\n+    interface_id:\n+        description:\n+            - Interface ID, required for association EIP's to private IP's,\n+                assigning more private ips, unassigning private ips.\n+        required: false\n+    state:\n+        description:\n+            - present to ensure resource is created or updated.\n+            - absent to remove resource\n+        required: false\n+        default: present\n+        choices: [ \"present\", \"absent\"]\n+author: Karen Cheng(@Etherdaemon)\n+extends_documentation_fragment: aws\n+'''\n+\n+EXAMPLES = '''\n+# Simple example of attaching 2 secondary private ips to\n+# an interface. Returns a list of secondary addresses\n+- name: Ensure interface has 2 seconday private addresses\n+  ec2_addresses:\n+    type: secondary_private\n+    state: present\n+    count: 2\n+    interface_id: eni-12345678\n+    profile: \"{{ boto_profile }}\"\n+    region: \"{{ region }}\"\n+  register: interface_results\n+\n+- name: Get the last secondary private ip address\n+  set_fact:\n+    last_secondary_private_details:\n+      ip_address: \"{{ interface_results.result.PrivateIpAddresses | selectattr('Primary', 'equalto', false) | map(attribute='PrivateIpAddress') | list | last }}\"\n+      interface_id: \"{{ interface_results.result.NetworkInterfaceId }}\"\n+\n+- name: Allocate Elastic IP and assign to the last secondary private ip address\n+  ec2_addresses:\n+    type: eip_to_private\n+    state: present\n+    private_ip: \"{{ last_secondary_private_details.ip_address }}\"\n+    interface_id: \"{{ last_secondary_private_details.interface_id }}\"\n+    profile: \"{{ boto_profile }}\"\n+    region: \"{{ region }}\"\n+    reassociation: true\n+    state: present\n+\n+- name: Associate existing public ip to private address\n+  ec2_addresses:\n+    type: eip_to_private\n+    state: present\n+    public_ip: 52.1.1.1\n+    private_ip: 10.1.1.1\n+    interface_id: eni-12345678\n+    state: present\n+\n+- name: Disassociate elastic ip from private address and release elastic ip\n+  ec2_addresses:\n+    type: eip_to_private\n+    state: absent\n+    public_ip: 52.1.1.1\n+    release_on_disassociation: yes\n+\n+- name: Disassociate all elastic ips from interface and release elastic ips\n+  ec2_addresses:\n+    type: eip_to_private\n+    state: absent\n+    interface_id: eni-12345678\n+    release_on_disassociation: yes\n+\n+- name: Unassign 10.1.1.1 from interface\n+  ec2_addresses:\n+    type: secondary_private\n+    state: absent\n+    private_ip: 10.1.1.1\n+    interface_id: eni-12345678\n+\n+- name: Unassign all secondary addresses from interface\n+  ec2_addresses:\n+    type: secondary_private\n+    state: absent\n+    interface_id: eni-12345678\n+\n+'''\n+\n+try:\n+    import json\n+    import botocore\n+    import boto3\n+    HAS_BOTO3 = True\n+except ImportError:\n+    HAS_BOTO3 = False\n+\n+\n+def date_handler(obj):\n+    return obj.isoformat() if hasattr(obj, 'isoformat') else obj\n+\n+\n+def get_interface_details(client, module):\n+    params = dict()\n+    if not module.params.get('interface_id'):\n+        module.fail_json(msg='interface_id is required')\n+    else:\n+        params['NetworkInterfaceIds'] = [module.params.get('interface_id')]\n+\n+    try:\n+        interface_details = client.describe_network_interfaces(**params)\n+    except botocore.exceptions.ClientError, e:\n+        module.fail_json(msg=\"Issue getting interface details - \"+str(e.response['Error']['Code']))\n+\n+    return interface_details\n+\n+\n+def unassign_secondary_private_addresses(client, module, private_ips):\n+    params = dict()\n+    params['NetworkInterfaceId'] = module.params.get('interface_id')\n+    params['PrivateIpAddresses'] = private_ips\n+\n+    client.unassign_private_ip_addresses(**params)\n+\n+\n+def remove_eip_to_private_addresses(client, module):\n+    params = dict()\n+    changed = False\n+    if module.params.get('public_ip'):\n+        public_ip = module.params.get('public_ip')\n+        eip_details = get_eip_details(client, module, public_ip)\n+        params['AssociationId'] = eip_details['AssociationId']\n+        client.disassociate_address(**params)\n+        result = release_eip_address(client, module, eip_details['AllocationId'])\n+        changed = True\n+    elif module.params.get('interface_id'):\n+        elastic_ips = get_interface_eips(client, module)\n+        if elastic_ips != []:\n+            changed = True\n+            for eip in elastic_ips:\n+                eip_details = get_eip_details(client, module, eip)\n+                params['AssociationId'] = eip_details['AssociationId']\n+                client.disassociate_address(**params)\n+                result = release_eip_address(client, module, eip_details['AllocationId'])\n+\n+    return changed, result\n+\n+\n+def release_eip_address(client, module, allocation_id):\n+    params = dict()\n+    if module.params.get('release_on_disassociation'):\n+        params['AllocationId'] = allocation_id\n+        client.release_address(**params)\n+\n+\n+def get_interface_eips(client, module):\n+    params = dict()\n+    if module.params.get('interface_id'):\n+        interface_details = get_interface_details(client, module)\n+        all_public_ips = [n['Association'] for n in\n+            interface_details['NetworkInterfaces'][0]['PrivateIpAddresses']\n+                 if 'Association' in n]\n+        elastic_ips = [n['PublicIp'] for n in all_public_ips if 'AllocationId' in n]\n+    else:\n+        module.fail_json(msg='interface_id is required.')\n+\n+    return elastic_ips\n+\n+\n+def return_secondary_address_details(client, module):\n+    interface_details = get_interface_details(client, module)\n+    existing_secondaries = \\\n+        filter(lambda i:\n+            i['Primary'] == False,\n+            interface_details['NetworkInterfaces'][0]['PrivateIpAddresses'])\n+    return existing_secondaries\n+\n+\n+def remove_secondary_private_addresses(client, module):\n+    params = dict()\n+    changed = False\n+    if not module.params.get('interface_id'):\n+        module.fail_json(msg='interface_id is required')\n+\n+    if module.params.get('private_ip'):\n+        private_ips = [module.params.get('private_ip')]\n+    else:\n+        interface_details = get_interface_details(client, module)\n+        existing_secondaries = \\\n+            filter(lambda i:\n+                i['Primary'] == False,\n+                interface_details['NetworkInterfaces'][0]['PrivateIpAddresses'])\n+        private_ips = [n['PrivateIpAddress'] for n in existing_secondaries]","path":"cloud/amazon/ec2_addresses.py","position":252,"original_position":252,"commit_id":"8b42f77b75b260ea5d7955c843be66a289d41bac","original_commit_id":"8b42f77b75b260ea5d7955c843be66a289d41bac","user":{"login":"willthames","id":391807,"avatar_url":"https://avatars.githubusercontent.com/u/391807?v=3","gravatar_id":"","url":"https://api.github.com/users/willthames","html_url":"https://github.com/willthames","followers_url":"https://api.github.com/users/willthames/followers","following_url":"https://api.github.com/users/willthames/following{/other_user}","gists_url":"https://api.github.com/users/willthames/gists{/gist_id}","starred_url":"https://api.github.com/users/willthames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willthames/subscriptions","organizations_url":"https://api.github.com/users/willthames/orgs","repos_url":"https://api.github.com/users/willthames/repos","events_url":"https://api.github.com/users/willthames/events{/privacy}","received_events_url":"https://api.github.com/users/willthames/received_events","type":"User","site_admin":false},"body":"Don't need the intermediate `existing_secondaries`. `filter` isn't very pythonic these days compared to list comprehensions (and Ansible's coding standards say list comprehensions should be kept simple if possible). I think the following expresses the same functionality while keeping it fairly simple:\r\n```\r\nprivate_ips = [i['NetworkInterfaces'][0]['PrivateIpAddresses']['PrivateIpAddress'] for i in interface_details if not i['Primary']\r\n```","created_at":"2015-11-23T01:29:08Z","updated_at":"2015-11-23T01:29:08Z","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1272#discussion_r45568734","pull_request_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/45568734"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1272#discussion_r45568734"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272","id":51477568,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/1272","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/1272.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/1272.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1272","number":1272,"state":"open","locked":false,"title":"New AWS EC2 Addresses module","user":{"login":"Etherdaemon","id":8214068,"avatar_url":"https://avatars.githubusercontent.com/u/8214068?v=3","gravatar_id":"","url":"https://api.github.com/users/Etherdaemon","html_url":"https://github.com/Etherdaemon","followers_url":"https://api.github.com/users/Etherdaemon/followers","following_url":"https://api.github.com/users/Etherdaemon/following{/other_user}","gists_url":"https://api.github.com/users/Etherdaemon/gists{/gist_id}","starred_url":"https://api.github.com/users/Etherdaemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Etherdaemon/subscriptions","organizations_url":"https://api.github.com/users/Etherdaemon/orgs","repos_url":"https://api.github.com/users/Etherdaemon/repos","events_url":"https://api.github.com/users/Etherdaemon/events{/privacy}","received_events_url":"https://api.github.com/users/Etherdaemon/received_events","type":"User","site_admin":false},"body":"Allocate, associate, disassociate and release ec2 addresses.\r\n\r\nThis module does not support EC2-Classic as its intended for private-addresses which are EC2-VPC only.\r\n\r\nRequires Boto3, botocore and json.\r\n\r\n- Allocate and deallocate secondary private ip's from an interface\r\n- Associates and if required allocate Elastic IP to private IP\r\n- Disassociate Elastic IPs and release if required","created_at":"2015-11-22T22:54:03Z","updated_at":"2015-11-23T01:29:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0f4db033789afad665c000a32727b9e12465ec7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1272/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/8b42f77b75b260ea5d7955c843be66a289d41bac","head":{"label":"Etherdaemon:new_ec2_addresses_module","ref":"new_ec2_addresses_module","sha":"8b42f77b75b260ea5d7955c843be66a289d41bac","user":{"login":"Etherdaemon","id":8214068,"avatar_url":"https://avatars.githubusercontent.com/u/8214068?v=3","gravatar_id":"","url":"https://api.github.com/users/Etherdaemon","html_url":"https://github.com/Etherdaemon","followers_url":"https://api.github.com/users/Etherdaemon/followers","following_url":"https://api.github.com/users/Etherdaemon/following{/other_user}","gists_url":"https://api.github.com/users/Etherdaemon/gists{/gist_id}","starred_url":"https://api.github.com/users/Etherdaemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Etherdaemon/subscriptions","organizations_url":"https://api.github.com/users/Etherdaemon/orgs","repos_url":"https://api.github.com/users/Etherdaemon/repos","events_url":"https://api.github.com/users/Etherdaemon/events{/privacy}","received_events_url":"https://api.github.com/users/Etherdaemon/received_events","type":"User","site_admin":false},"repo":{"id":45519681,"name":"ansible-modules-extras","full_name":"Etherdaemon/ansible-modules-extras","owner":{"login":"Etherdaemon","id":8214068,"avatar_url":"https://avatars.githubusercontent.com/u/8214068?v=3","gravatar_id":"","url":"https://api.github.com/users/Etherdaemon","html_url":"https://github.com/Etherdaemon","followers_url":"https://api.github.com/users/Etherdaemon/followers","following_url":"https://api.github.com/users/Etherdaemon/following{/other_user}","gists_url":"https://api.github.com/users/Etherdaemon/gists{/gist_id}","starred_url":"https://api.github.com/users/Etherdaemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Etherdaemon/subscriptions","organizations_url":"https://api.github.com/users/Etherdaemon/orgs","repos_url":"https://api.github.com/users/Etherdaemon/repos","events_url":"https://api.github.com/users/Etherdaemon/events{/privacy}","received_events_url":"https://api.github.com/users/Etherdaemon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Etherdaemon/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras","forks_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/Etherdaemon/ansible-modules-extras/releases{/id}","created_at":"2015-11-04T06:25:51Z","updated_at":"2015-11-04T06:25:54Z","pushed_at":"2015-11-22T22:47:56Z","git_url":"git://github.com/Etherdaemon/ansible-modules-extras.git","ssh_url":"git@github.com:Etherdaemon/ansible-modules-extras.git","clone_url":"https://github.com/Etherdaemon/ansible-modules-extras.git","svn_url":"https://github.com/Etherdaemon/ansible-modules-extras","homepage":"","size":7970,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"0298f47df9d8605a108b15abee498f5a3256ce12","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":24474138,"name":"ansible-modules-extras","full_name":"ansible/ansible-modules-extras","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-extras","description":"Ansible extra modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-extras","forks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-extras/releases{/id}","created_at":"2014-09-25T20:28:42Z","updated_at":"2015-11-19T18:58:06Z","pushed_at":"2015-11-22T22:54:04Z","git_url":"git://github.com/ansible/ansible-modules-extras.git","ssh_url":"git@github.com:ansible/ansible-modules-extras.git","clone_url":"https://github.com/ansible/ansible-modules-extras.git","svn_url":"https://github.com/ansible/ansible-modules-extras","homepage":"","size":9952,"stargazers_count":385,"watchers_count":385,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":807,"mirror_url":null,"open_issues_count":339,"forks":807,"open_issues":339,"watchers":385,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1272"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1272"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1272/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1272/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/8b42f77b75b260ea5d7955c843be66a289d41bac"}}}}