with_first_found documentation

Hi!

I am looking for a description what “with_first_found” does how it works. I googled and searched the ansible documentation and I can figure it out but guessing is not good way I think. So where can I find a detailed description of it?

Thank you very much!

Baraka

https://docs.ansible.com/ansible/2.4/playbooks_loops.html#finding-first-matched-files

All the with_ loops are actually with_<lookup> constructs, you can
find the lookup specific docs here
https://docs.ansible.com/ansible/latest/plugins/lookup.html.
Specific docs for the first_found lookup:
https://docs.ansible.com/ansible/latest/plugins/lookup/first_found.html

Thank you so much! I was searching the hell out of google :slight_smile: I missed these pages somehow.