more weirdness when testing include_role

Here’s another oddity. As far as I can see from the docs, this should work (“myrole” lives in roles/myrole in the plabook folder)

I just updated it to add _role_name and use that instead of name (which it was conflating with the task level one), make sure you don’t have old .pyc files.

Sweet! Will retest

So, I’m testing on the latest devel (up to date as of right now). If I omit the “name” prop I get the error “ERROR! ‘name’ is a required field.”

Playbook:

Sorry for the confusion, _role_name is internal, you need to set name:

  • include_role:
    name: myrole

Ah, gotcha. Thanks.

I’m still struggling to get with_items to work tho. Trying this:

Just tested this with the latest devel and still no luck. Should this work?