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)
---
- name: Do stuff to stuff
hosts: localhost
tasks:
- name: set fact
set_fact:
thing: otherstuff
- name: myrole
with_items:
- "aone"
- "atwo"
include_role:
name: myrole
vars:
thing: "{{ item }}"
However, it throws an error I haven't seen before: 'IncludeRole' object has
no attribute '_role_name'
Shouldn't this work?
--
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/8f192ef9-0812-4abf-9cab-11fad0651a17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.