If you know the existing group id then you can use:
group_id: sg-12345678
Or if you have more than one group:
group_id:
- sg-12345678
- sg-87654321
Kenton Brede
On Mon, Jan 23, 2017 at 4:00 AM, Sm Sathi <[email protected]> wrote:
> Hi
> Can someone share how can i use an existing security group in AWS while
> creating an EC2 instance via ansible playbook please?
>
> Sathiya
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/38c3b12e-0faa-430d-a4b4-04724eca3426%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/38c3b12e-0faa-430d-a4b4-04724eca3426%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CA%2BnSE39pgtKr8t68n%2B5%3Dhyzj3VVOywg2EGcHZ9YrA%2BJYcTYZiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.