merging of groups

When I have a host in two different group and apply a play against both groups, the task is repeated on that group. eg:

     [krbclient]
     hosta
     hostb

     [nfsclient]
     hostb
     hostc

     [nfsserver]
     hostd

When I run a play such as:
     - hosts: krbclient:nfsclient
       roles:
         - setupusers

That role will be applied twice to hostb. It doesn't break anything, the second time they run, they just show "ok", but it wastes time.

Shouldn't the groups be merged to avoid this?

Pretty darn sure Ansible doesn’t do this?

How did you observe this feature?

(ansible --version and output with a very minimal please?)

  • hosts: groupA:groupB
    tasks:
  • action: ping

Looks fine to me.