You may be able to make this work with a simple:

- name test copy from variable
  copy:
    content: "{{ item.data }}
    dest: "{{ target_dir }}/{{ item.filename }}'
  with_items: "{{ mydict }}"

Why do You need an extra list?

-- 
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/95e3a951-6914-46f6-82e6-b18ee4e87b65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to