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