It works in the example I gave yes -- but it seems like any task with both when: and register: becomes basically impossible to reason about within an include ... (the registered value could come from a previous include: invocation in the case of when: evaluating to false) ...
On Saturday, August 15, 2015, Brian Coca <[email protected]> wrote: > no var scoping, but just using simple naming conventions should deal with > that. > > On Sat, Aug 15, 2015 at 1:40 AM, Ben Cohen <[email protected] > <javascript:;>> wrote: > > Ok -- I see that include: supports with_items in ansible v2 -- I think I > see > > that include: + blocks: get me most of what I want. Will (does already?) > > include: have an option in v2 to limit the scope of the included tasks to > > only the values passed in and to not leak variables registered within > out to > > the caller? It seems like include: and with_items: could become > confusing > > without this ... > > > > > > On Fri, Aug 14, 2015 at 10:06 PM, Brian Coca <[email protected] > <javascript:;>> wrote: > >> > >> that is what includes and roles are for. > >> > >> > >> > >> -- > >> Brian Coca > >> > >> -- > >> 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] <javascript:;>. > >> To post to this group, send email to [email protected] > <javascript:;>. > >> To view this discussion on the web visit > >> > https://groups.google.com/d/msgid/ansible-project/CAJ5XC8kHB9YT9VhwuKU%2BXFWHoG45cEaaAuRk_WoVih5nvXt1Nw%40mail.gmail.com > . > >> 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] <javascript:;>. > > To post to this group, send email to [email protected] > <javascript:;>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/CABUBibtQ6wuny-E1fQU1eLEXP31kH0WGowF6-DVzC%2B7-zNJy5A%40mail.gmail.com > . > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Brian Coca > > -- > 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] <javascript:;>. > To post to this group, send email to [email protected] > <javascript:;>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3DjX9L7FyMbur5CEssZ%2BAwvu_pQoSkL9iK3b7hUOtAEoQ%40mail.gmail.com > . > 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/CABUBibvxDRMz1CQZHLhnFxqfDz%3DOjfMm3ju%2BjYmV3TgEqy6-Gw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
