# V2 wrapper role variable issue

**URL:** <https://forum.ansible.com/t/v2-wrapper-role-variable-issue/20137>\
**Category:** Ansible Project\
**Created:** [January 7, 2016, 10:32am UTC](https://forum.ansible.com/t/v2-wrapper-role-variable-issue/20137 "2016-01-07T10:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adham\_H](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Adham\_H](https://forum.ansible.com/u/Adham_H)\
**Post date:** [January 7, 2016, 10:32am UTC](https://forum.ansible.com/t/v2-wrapper-role-variable-issue/20137/1 "2016-01-07T10:32:05Z")

</div>

Hi,

I have two roles 1- community-role 2- wrapper-role defined below

> **Role: community-role**  
> **defaults:**  
> **main.yml**

> ## `
> 
> # community-role/defaults/main.yml
> 
> super\_users : False
> 
> `

> **Role: wrapper-role**  
> **default:**  
> **main.yml**  
> **meta:**  
> **main.yml**

> ## `
> 
> # wrapper-roledefaults/main.yml
> 
> super\_users :
> 
> - user: user1  
> shell: “/bin/bash”  
> vpn: True  
> data: “Blaaa”  
> other: “asdsadasd”
> - user: user2  
> shell: “/bin/bash”  
> vpn: False  
> data: “Blaaa2”  
> other: “asdsadasd”  
> `

> ## `
> 
> # wrapper-role/meta/main.yml
> 
> dependencies:
> 
> - {role: community-role}  
> `

- In v1 wrapper role **super\_users** would overwrite community
- In v2 community **super\_users** would not be overwriten and will have **False** value

Since both variables are defined in defaults/main.yml they should malleable and easily overridden by the wrapper role  
I tend to user wrapper roles a lot to add extra functionality to community roles. Is that by design or bug in v2 ?

Regards
