Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
question in when & with_nested loops
12 views
Skip to first unread message
黄文彪
unread,
Aug 10, 2015, 9:08:37 AM
8/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
8/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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