and got it working...

replaced the
    iloms:
     -gateway: xxxx
      mask: xxxxx

format with
    
iloms: 
['10.85.0.1/255.255.254.0','10.234.50.161/255.255.255.224','10.224.64.1/255.255.248.0']

where each element is the gw/mask pair and got rid of the "with_items"  the 
filter was modified to parse all the elements, check to see which set 
matched and return only the correct pairing

So, instead of looping through the list items, I pass them all at once and 
the filter does all the heavy lifting.



-- 
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/abdebe11-633e-4b38-ab8a-b92bd45f7282%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to