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') to something dependent on my item?
Whatever syntax I try I always end up with a literal and not the value. Is
setting variables using loop values not supported?

kind regards
Pshem

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEaZiRWsOg3h%2BU2J6sT5xf_-PhvEbUKk0oY7zpCagcTmKnr56g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to