It's not a bug.

It's also a little weird, it's not expected that you would manually include
a task file from a role directory without using roles, but if you wanted
to, you would have to path it in the various subdirectories.




On Wed, Jun 25, 2014 at 7:03 AM, Руслан Закиров <[email protected]> wrote:

> Hi,
>
> I hoped for the following to work from a playbook:
>
> - hosts: backends
>   roles:
>     - common
>     - perl-app
>   tasks:
>     - include: a_task_that_sits_in_xxx_role.yml
>
> But I get:
>
> ERROR: file could not read: .../my-ansible/a_task_that_sits_in_xxx_role
> .yml
>
> What I expected is that an include in a playbook will search for a task to
> include in play's roles.
>
> Is it a bug?
>
> --
> 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/67cb019c-471b-46ca-82d0-46760f8f4677%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/67cb019c-471b-46ca-82d0-46760f8f4677%40googlegroups.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%2BnsWgw_Tu3Jbf9-JsYLp6Kc_h%3D4Vchy5jabzavuE21NRMq1rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to