Hi,

(this email was previously send to the incorrect list [1])

I've got 3 sets of data:

foo: [ A, B, C, D, ...]
bar: [ 1, 2 ]
tra: [ a, b ]

foo should be combined with bar and tra in a nested loop, but bar and
tra should loop together.

something like (not actually working):

- debug: msg="{{ item[0] }} {{ item[1][0] }} {{ item[1][1] }}
  with_netsted:
   - foo
   - item
   with_together:
    - bar
    - tra

Expected output:

A1a
A2b
B1a
B2b
C1a
C2b
...

How would I actually combine with_nested: and with_together?

In addition to that I will need a loop termination once it reached a
certain amount of loop executions.
On a simple loop I would use 'with_indexed_items:' and check the index
against a given max value. How would that loop count limit be
implemented in the loop described above?

thanks!
Nusenu

[1] https://groups.google.com/d/msg/ansible-devel/aLrH_SC8HyY/FZPs7GanHysJ

-- 
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/54E50EEF.10801%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to