Question about roles, handlers, variables, and scope

Hi all,

In a role I have, I’m including another file in the role, and setting a variable in the include statement. Then from the included file, I’m notifying a handler in that role. Should the handler be able to access the variable in the include? Right now it does not seem to be able to. A simple example of what I’m talking about is here:

https://gist.github.com/Simonft/5c5f154249cf758157c6

Thanks,
Simon

As far as I can tell, variables passed in as params to includes have never been merged into the global list of variables (I’ve gone back to 1.3.0 to test your example). So I would consider this a bug, if you’d like to open a github issue for us so we can keep track of this.

Thanks!

So it shouldn’t be merged into a global list, but should be valid only for that include.