The logic in question is here:
https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/action_plugins/group_by.py#L90-L92

"I'd assume the hosts that matched the group_by and weren't already in the
group just get added to the group?"

More like: "the group is added to the host" based on the code


On Wed, Jan 8, 2014 at 1:31 PM, Mark Casey <[email protected]> wrote:

> If you use group_by but the resulting group name already exists in your
> inventory, what happens? I'd assume the hosts that matched the group_by and
> weren't already in the group just get added to the group?
>
> If necessary I don't mind setting up a few VMs and testing it but I
> thought I'd see if anyone knew off the top of their head.
>
> Thank you,
> Mark
>
> --
> 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.
>

-- 
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.

Reply via email to