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! On Tue, Jun 3, 2014 at 4:16 PM, Simon Fondrie-Teitler < [email protected]> wrote: > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/7f561389-0ca5-4130-b57d-5b115b961b97%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/7f561389-0ca5-4130-b57d-5b115b961b97%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAMFyvFi99F7Gf3eAifFuEvmJRD-VT4asR6fTwV2qP77rZTsR1Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
