On 24.09.2019 19:48, Rakesh Parida wrote: > Hi Kai, > > I had already tried it it gives me o/p as same as : > debug: > msg: {{ instid }} > > Both the o/ps are similar. > > Now i want the stdout_lines for each item as my desired o/p > something like: > e8ebc5a4-17f3-4b80-a935-03164211a804 TOMICS2 > 7865dvgsf-17f3-4b80-a935-03164211a804 TOMICS1 > abc12345g-17f3-4b80-a935-03164211a804 TOMIAS2
As I wrote instid contains a results which is a list so you need to loop over it to get the individual results. - debug: msg="{{ item.stdout }}" with_items: "{{ instid.results }}" -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/94242458-ca59-cb83-ad99-27b7ba3a8fa6%40olstad.com.