Excerpts from Michael DeHaan's message of 2014-08-20 08:51:01 -0400:
> With a simple list, you can do stuff like:
> 
> - shell: echo {{ item }}
>   with_items: alist_that_may_be_undefined | default([])

I'm fairly sure this works also:

  - shell: echo {{ item }}
    with_subelements:
      - some_list|default([])
      - some_subkey

--
Morgan Hamill

-- 
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/1408540299-sup-9905%40al.wesleyan.edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to