Yes that's what I ended up doing. I'm not sure why I'm not able to use the lookup plugin within the line.
On Jan 6, 2017 3:47 PM, "Johannes Kastl" <[email protected]> wrote: > On 05.01.17 21:43 Sam Sen wrote: > > Running Ansible 2.1.1 > > > > I want to dynamically build the variable name for a file I wish to > > load using "include_vars." it doesn't work using the lookup plugin > > but the lookup plugin itself does work when I use the "debug" > > method. > > Can you workaround it by setting a variable to the result of your > lookup and then use this variable for the file name? > > Johannes > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ansible-project/LIobDktTId0/unsubscribe. > To unsubscribe from this group and all its topics, 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/e9f1fb44-1013-bb94-a4ca-8245366c67b1%40ojkastl.de. > 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/CAPTHpVTGOtM4%2Bwyfwjs5TvTEwc3X5k4xEebzgH2TMOjx%3Dx-8MA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
