Limit and selection of group with dynamic inventory

Hello,
I have a setup in google cloud which has been working very well with Ansible. Till last week, we had only one “environment” per machine. Each environment was marked by a network tag which ansible would pick up while using limit. This worked beautifully.
Now, we are trying to consolidate some machines, ones that have our database. Thus, we have 2 environments together e.g. tag_dev and tag_test on one machine.
This has caused a bug where one of my play fails because ansible always picks a particular tag.
$ cat inventory/group_vars/tag_dev