Ok, I tried the 'hack' in that thread but it didn't work for me. I was hoping for a clean way to do what I need but l can't think of anything clean, so I went with functional. I got the result I was looking for by using the same loop against the host command on the shell, dumping that into a file, and then grepping the first hostname that isn't found. Ugly but it works.
On Thursday, June 25, 2020 at 10:21:36 AM UTC-4, Vladimir Botka wrote: > > On Thu, 25 Jun 2020 06:51:12 -0700 (PDT) > Cade Lambert <[email protected] <javascript:>> wrote: > > > I'd like it to stop processing the loop at item=4, since that's the > first > > success. > > This is not possible atm. All items in the loop will be processed. The > details have already been discussed here > https://groups.google.com/forum/#!topic/ansible-project/uJqSmkKTpZc > > -- > Vladimir Botka > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bb1f8b61-2032-4aa0-a12f-d684574505c9o%40googlegroups.com.
