{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4451","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4451/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4451/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4451/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4451","id":171664751,"number":4451,"title":"ec2: group_id doesn't seem to accept a list of security groups as documented","user":{"login":"ralfbergs","id":7198745,"avatar_url":"https://avatars.githubusercontent.com/u/7198745?v=3","gravatar_id":"","url":"https://api.github.com/users/ralfbergs","html_url":"https://github.com/ralfbergs","followers_url":"https://api.github.com/users/ralfbergs/followers","following_url":"https://api.github.com/users/ralfbergs/following{/other_user}","gists_url":"https://api.github.com/users/ralfbergs/gists{/gist_id}","starred_url":"https://api.github.com/users/ralfbergs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralfbergs/subscriptions","organizations_url":"https://api.github.com/users/ralfbergs/orgs","repos_url":"https://api.github.com/users/ralfbergs/repos","events_url":"https://api.github.com/users/ralfbergs/events{/privacy}","received_events_url":"https://api.github.com/users/ralfbergs/received_events","type":"User","site_admin":false},"labels":[{"id":437720344,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.1","name":"affects_2.1","color":"5319e7","default":false},{"id":382351767,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/aws","name":"aws","color":"c5def5","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":132897218,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-17T13:59:05Z","updated_at":"2016-12-09T21:20:09Z","closed_at":"2016-12-09T21:20:09Z","body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\n##### ISSUE TYPE\n\n<!--- Pick one below and delete the rest: -->\n- Bug Report\n##### COMPONENT NAME\n\nec2\n##### ANSIBLE VERSION\n\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\n\n```\nansible 2.1.1.0\n  config file =\n  configured module search path = Default w/o overrides\n```\n##### CONFIGURATION\n\n<!---\nMention any settings you have changed/added/removed in ansible.cfg\n(or using the ANSIBLE_* environment variables).\n-->\n##### OS / ENVIRONMENT\n\n<!---\nMention the OS you are running Ansible from, and the OS you are\nmanaging, or say “N/A” for anything that is not platform-specific.\n-->\n##### SUMMARY\n\nAnsible doesn't accept a list of security groups when launching an instance, while it's [documented](https://docs.ansible.com/ansible/ec2_module.html) that it does: \"security group id (or list of ids) to use with the instance\"\n##### STEPS TO REPRODUCE\n\nExecute the following task:\n\n<!--- Paste example playbooks or commands between quotes below -->\n\n```\n    - name: \"Launch proxy instance: {{ owner }}_i_{{ env }}_dmz_2\"\n      ec2:\n        region: \"{{ region }}\"\n        image: \"{{ ami_id }}\"\n        count_tag:\n          Name: \"{{ owner }}_i_{{ env }}_dmz_2\"\n        exact_count: 1\n        #wait: yes\n        instance_type: \"t2.micro\"\n        key_name: \"{{ ssh_key_name}}\"\n        # TODO\n        group_id:\n          - \"{{ preprod_sg_ssh.group_id }}\"\n          - \"{{ preprod_sg_proxy.group_id }}\"\n        vpc_subnet_id: \"{{ preprod_subnet_dmz_2 }}\"\n        zone: \"{{ az2 }}\"\n        instance_tags:\n          Name: \"{{ owner }}_i_{{ env }}_dmz_2\"\n          Env: \"{{ owner }}_{{ env }}\"\n          Tier: \"{{ owner }}_{{ env }}_dmz\"\n      register: preprod_i_dmz_2 # preprod_i_dmz_2.tagged_instances[0].id\n```\n\n<!--- You can also paste gist.github.com links for larger files -->\n##### EXPECTED RESULTS\n\nExpected that the two SGs specified would be assigned to the instance.\n##### ACTUAL RESULTS\n\nNone of the two SGs were assigned to the instance. The instance had the default SG assigned.\n"}}
{"actor":{"display_login":"ralfbergs"}}