Well, from an ansible perspective, the way we do it is not by multiple groups. We use roles instead. So, for example, one of our "utility hosts" in ec2 is an ldap-slave, splunk forwarder, bastion host, etc. Instead of tagging each group we use tag_aws_utility and then run all of those roles in the playbook.
On Fri, Jan 10, 2014 at 12:58 PM, Yves Dorfsman <[email protected]> wrote: > Yes I guess... > > I'm a bit surprised and worried to only get one answer. Are there many > people out there using the dynamic inventory with ec2.py (I like to use > well tested, well used modules)? > > Anybody else solved the issue of belonging to more than one group another > way? > > Thanks. > > > On 2014-01-10 11:44, Peter Gehres wrote: > >> You could invert the key:value paradigm for groups and make them: >> "web:group" >> and "app:group" which would yield tag_web_group and tag_app_group. It >> isn't >> pretty but it would work. >> >> >> On Fri, Jan 10, 2014 at 10:10 AM, Yves Dorfsman <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> When using dynamic inventory, my understanding is that you group your >> hosts with EC2 tags. How do you add a host to two groups then, since >> EC2 >> can only take one value for a given key? >> >> Example: >> text inventory: >> >> [web] >> sever1 >> server2 >> >> [app] >> server1 >> server3 >> >> In EC2, I use a tag called 'group', but I can only have one value for >> that >> group, either web or app... >> >> Anybody run into this issue? >> >> >> Thanks. >> >> >> -- >> Yves. >> >> -- >> 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 ansible-project+unsubscribe@__googlegroups.com >> <mailto:ansible-project%[email protected]>. >> To post to this group, send email to ansible-project@googlegroups._ >> _com >> <mailto:[email protected]>. >> For more options, visit https://groups.google.com/__groups/opt_out >> <https://groups.google.com/groups/opt_out>. >> >> >> >> >> >> -- >> Peter Gehres >> Site Reliability Engineer | AppDynamics, Inc. >> www.appdynamics.com <http://www.appdynamics.com> | AS62897 >> >> >> -- >> 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]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > -- > Yves. > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Peter Gehres Site Reliability Engineer | AppDynamics, Inc. www.appdynamics.com | AS62897 -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
