Running ansible with inventories where hosts are overlapping

Hi,
I have several inventories i use for my different environments (test, ci, production, etc.). in my inventory files i use static IP addresses as hosts (this is required, although i’m not sure it matters for my question)

Basically my inventory would look like this
[child1]
ip1

[child2]
ip2

[parent:children]
child1
child2

and the play has “host: parent” as the hosts to run a particular play on.

This generally works fine except when in my env ip1==ip2. When that happens the play only runs once BUT i have different vars i want to run for “child1” and “child2” and i DO want it to run multiple times (once for each child)
How can i force ansible to run for all children in this instance?

Tx in advance

Use aliases in the inventory and set ansible_ssh_host to the actual
IP, ansible uniques on 'inventory_hostname' so you can point at the
same host more than once as long as it has different names.