Hi,

I'm trying to loop over a list of arrays but I seem to be picking up each 
array element instead of entire array on each pass:

- hosts: all
  vars:
  - hello:
    - [ 'Hello', 'world']
    - [ 'Goodbye', 'people']
  tasks:
  - name: Testing loop
    shell: echo {{ item[0] }} {{ item[1] }}
    with_items: hello

I get 4 invocations (instead of 2 I though) so the end result is:

echo H e
echo w o
echo G o
echo p e

instead of:
echo Hello world
echo Goodbye people

it almost sounds like "with_items" does what "with_nested" should be doing 
or am I missing something?

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to