On Saturday, 18 April 2015 17:01:16 UTC+2, Serge van Ginderachter wrote: Hi Serge,
On 18 April 2015 at 15:51, Anand Buddhdev <[email protected] <javascript:>> > wrote: > >> 1. the order of the names in group_names does not match the inventory >> parent-child order; and >> > > There is no way of knowing that, as the inventory does not export that > information to other ansible parts > Ah, that's a bummer. Is there any way to get the inventory to expose this information for lookup plugins to use? > 2. I don't know how to prefix "group_files" to each group name, in order >> to keep my group files in their own directory. >> > > perhaps I miss your point but > > > - paths: "group_files/{{ group_names }}" > files: > - myfile > This can't work. The "paths" attribute expects a list. By passing it "group_files/{{ group_names }}", it turns into the string: "group_files/['group1', 'group2', 'group3']" This is a weird, but valid path, so ansible will look in there, but not find anything. -- 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/fdeac601-c799-4f13-a218-feea6ef21b0f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
