The group_names variable will hold that info. It is a list of all groups that the current host is a member of.
On Tuesday, November 4, 2014, Kevin Burton <[email protected]> wrote: > For the life of me I can't seem to find this in the docs but I'm sure it's > possible. > > I have a template and I want to expand a string to all the groups that > host is a member of. > > I'm using them as tags in our monitoring system. > > > -- > 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] > <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/f7be07e4-7be2-469f-94d3-3e8065e8b220%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/f7be07e4-7be2-469f-94d3-3e8065e8b220%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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/CAD8N0v_zBPGN4ZdFLx%2BRoP1zhbN-ZX529FBCkpOE_jzv1OjF2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
