The hierarchy should dynamically grow if an interpolated variable contains an Array.

Take the following example:

$roles = ["roleA", "roleB", "roleC"]

environments/%{::environment}/%{::roles}/common

should become:

- environments/%{::environment}/roleA/common
- environments/%{::environment}/roleB/common
- environments/%{::environment}/roleC/common