Deploy stack to hosts with different labels

So I have host A with the label host_A and a host B with a label host_b how can I deploy a stack to two hosts with different labels?