Ansible role variables

Hello I have Ansible 2.3.0.0 with this roles in playbook:

- { role: bwt-container, tags: ['bwt_en', 'bwt'], vars: { app_lang: "en" } }
- { role: bwt-container, tags: ['bwt_de', 'bwt'], vars: { app_lang: "de" } }
 

BWT application have various languages, which I would like define in vars. But when I run:

ansible-playbook -v site.yml --limit test-server --tags bwt_en 

So app_lang variable have “de” value…
Why??
I would like have 2 containers with various languages…
Do you know anyone how resolve it??

https://superuser.com/questions/1229183/ansible-role-variables

You have a bug in your code and since you have not provided the code it's hard to help.

I think I’ve seen this somewhere else as well.

Maybe look into implementing it as a play using multiple include_role tasks instead?