Weirdness when testing include_role

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:

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

​Sounds like a bug, probably my fault for reusing name on the object and bad tests:

  • name: myrole
    include_role: name=myrole