On 13.12.2016 07:27, Deepa Yr wrote:
Thanks. I have many more fields defined for patch other than
patch_name. In
that case, it would be difficult to use with_items right.. or Is there
a
solution with list and with_items ?
patches:
patch1:
patch_name:
patch_md5:
engine:
Services:
patch2:
patch_name:
patch_md5:
engine:
services:
patch3:
patch_name:
patch_md5:
engine:
services:
patches:
- patch_name:
patch_md5:
engine:
Services:
- patch_name:
patch_md5:
engine:
services:
- patch_name:
patch_md5:
engine:
services:
- debug: msg="Name {{ item.patch_name}}, MD5 {{ item.patch_md5 }}"
with_items: "{{ patches }}"
--
Kai Stian Olstad
--
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/edaa1eaef7ae6b016283006810ec80dd%40olstad.com.
For more options, visit https://groups.google.com/d/optout.