ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

ec2_group: support reference to existing groups by ID #5898

Closed mludvig closed 7 years ago

mludvig commented 7 years ago

When managing pre-existing Security Groups it's often more convenient to refer to them by their ID (sg-12345678) rather then by their name (test-sg-whatever).

This patch adds a new module parameter 'group_id' and makes 'name' and 'description' not required. Creating new group still requires 'name' and 'description' but the check is moved to later in the module.

This repository is locked

Please open all new issues and pull requests in https://github.com/ansible/ansible

For more information please see http://docs.ansible.com/ansible/dev_guide/repomerge.html

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.