Say I have two variable like these:

var1:
  key1: val1
  key2: val2
var2:
  - item1
  - item2

Can I loop over these two variables like below?

- shell: echo {{ item.0.value }} {{ item.1 }}
  with_dict: "{{ var1 }}"
  with_items: "{{ var2 }}"

I have no idea to loop over these two variables together and don't wanna 
change the data type of the variables. Is there any way to achieve this 
kind of loop in ansible?

-- 
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/1907f0b1-2f5a-4c6e-b93b-878be95a4091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to