# Building lists?

**URL:** <https://forum.ansible.com/t/building-lists/17952>\
**Category:** Ansible Project\
**Created:** [April 10, 2015, 11:00am UTC](https://forum.ansible.com/t/building-lists/17952 "2015-04-10T11:00:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico\_K](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Post date:** [April 10, 2015, 11:00am UTC](https://forum.ansible.com/t/building-lists/17952/1 "2015-04-10T11:00:09Z")

</div>

Hi,

In my specific scenario I’m creating a bunch of ec2 security groups using with\_items, I’m using the register task to pick up the result.  
The resulting variable, as expected contains the information for each security group, I would like to obtain just the security group id’s and shove those in a list variable.

Any ideas?

Thanks,  
Nico
