I have a playbook like
- hosts: hostA
roles:
- roleA
- roleB
- hosts: hostB
roles:
- roleA
- roleC
and an inventory
all:
children:
hostA:
hosts:
machine1
hostB:
hosts:
machine2
So far, everything works fine. But now I have a second environment with inventory
all:
children:
hostA:
hosts:
machine3
hostB:
hosts:
machine3
RoleA gets executed twice when I run the playbook. Is there a way to prevent that?