I have several roles that create various numbers of security groups.

I have another role that creates an instance.

I want the second role to be re-usable, and to be usable with the roles 
that create security groups.

So I want the second role to attach a list of security groups to the 
instance it creates.

The role that creates security groups thus has to be able to somehow return 
a list of security groups.

My role creates security groups and registers eg sg_1, sg_2, sg_3 and so on.

How can I create a list variable? Something like  sgs: [sg_1.group_id, 
sg_2.group_id, sg_3.group_id] ?

The variable cannot be created inside the role that creates the instance, 
as that would bind it too closely to the role that creates the security 
groups. It has to be created inside the role that creates the security 
groups.

Or is there some other way to achieve this?

Regards, K.

-- 
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/bd43da00-67fe-4d5b-a0b2-388ed9c59aa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to