question in when & with_nested loops

12 views
Skip to first unread message

黄文彪

unread,
Aug 10, 2015, 9:08:37 AM8/10/15
to Ansible Project
when item[0] in item[1]  
with_nested:
 - [1,2]
 - [1,3]

will make all loop,just like:(1 in 1)? and then also do (1 in 3)?.......,but how to let it not do the (1 in 3)?

Brian Coca

unread,
Aug 10, 2015, 9:13:14 AM8/10/15
to Ansible Project
i'm not sure, but I think you want:

when: item[0] == item[1]



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages