"*Is there a way to specify in a playbook where to look up files* (like the 'files' directory in roles)?"
The answer here is that you shouldn't need it. The files will first be looked for in the "roles/files" directory, and then in a directory alongside the playbook. The error message you get when the file is not found will tell you where it is searching, and you should just be able to put things in the right place without having to rely on variables to find path locations. On Wed, May 14, 2014 at 7:58 AM, Serge van Ginderachter < [email protected]> wrote: > > On 14 May 2014 13:47, ProfHase <[email protected]> wrote: > >> *Is there a way to specify in a playbook where to look up files* (like >> the 'files' directory in roles)? > > > You have some magic vars for that: > - playbook_dir > - inventory_dir > > I have been thinking it would also be nice to have a role_dir. > > Serge > > -- > 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/CAEhzMJBW1-tNB2VNwn2Kb-bgM9R4c2umprx4y4TXnhdWvxkZ5w%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAEhzMJBW1-tNB2VNwn2Kb-bgM9R4c2umprx4y4TXnhdWvxkZ5w%40mail.gmail.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/CA%2BnsWgwGBmTJ7np_s5LPKscFsq6uAjxHodR_BAEk25FvYMSwbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
