Turns out it's actually a bug in 'include_role' - a bunch of tickets have
been opened about this. The general issue is that various types of
variables are not visible inside the 'include_role' scope. (see here:
you want:
loop_control:
loop_var: resource
--
Brian Coca
--
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
Hi,
I think I'm missing something obvious, so please point me in the right
direction (ansible 2.3).
- name: load and run services
include_role:
name: "resource_{{ item.resource }}"
vars:
resource: "{{ item }}"
with_items:
- "{{ services }}"
How do I set the var ('resource')