My use case is to use a single playbook to run the same role on 2 different host groups, but I want to pass different variable values depending on the host group the role is executing against. I've tried many ways of doing this, but I am finding the second play for the second host group is not executed.
---
- name: Run against webservers
hosts: webservers
vars: var1: "val_a"
roles:
- common_role
- name: Run against dbservers
hosts: dbservers
vars: var1: "val_b"
roles:
- common_role
```
when I execute code similar to above, it only executes the first play, against webservers, and terminates. Is my use case valid? (i.e. execution of same role, against 2 host groups, but passing different variable values for each group, within single playbook)