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.