I haven't messed around with it but according to their examples, your first 
test should have worked.

>From the docs:

- name: Run tasks/other.yml instead of 'main'
  include_role:
    name: myrole
    tasks_from: other


On Monday, October 3, 2016 at 4:24:49 PM UTC-4, Trond Hindenes wrote:
>
> Just a quick question regarding the include_role thing:
>
> It seems that the "name" of the include_role task needs to match the role 
> name, is anybody else seeing the same? For example, if my role is called 
> "myrole", then this doesnt work:
> ---
> - name: Do stuff to stuff
>   hosts: localhost
>   tasks:
>     - name: do the thing
>       include_role:
>         name: myrole
>
> While this works:
> ---
> - name: Do stuff to stuff
>   hosts: localhost
>   tasks:
>     - name: myrole
>       include_role:
>         name: myrole
>
> btw: this is such an awesome feature. It's gonna fundamentally change how 
> we write playbooks. Thanks!
>

-- 
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/56aad8c7-f6eb-4626-ac2d-a45d5f2e0f03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to