All lookups use files/, I agree this is confusing with template and would contemplate adding the templates/ directories for this specific plugin.
On Sun, May 31, 2015 at 9:49 AM, Matt Martz <[email protected]> wrote: > It is expected. > > > On Saturday, May 30, 2015, Barry Kaplan <[email protected]> wrote: >> >> I see that lookup('template') is looking in the files directory not the >> template directory. >> >> fatal: [10.0.139.56] => Failed to template msg="{{lookup('template', >> 'rs_initiate_cmd.js.j2')}}": unable to read >> /Users/bkaplan/si/ops/ansible/playbooks/roles/mongodb/files/rs_initiate_cmd.js.j2 >> >> >> Is this expected or a bug? I can't find any docs on lookup('template') >> only the example in the Lookups section. (Have not looked at the code yet.) >> >> -- >> 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/f884d62f-7013-43ac-a0a0-36ab18ac7212%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Matt Martz > @sivel > sivel.net > > -- > 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/CAD8N0v_r0rT9fTvw%3DGpcULKAJ0s2U480O1LFGB99cbx0CCwDrg%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]. 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/CAJ5XC8mCmpmthK8E%3DNbp5KW9QzCFgYKnS9ysoxFOStiB7XRVWw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
