with_first_found documentation

26 views
Skip to first unread message

Baraka Baraka

unread,
Dec 11, 2018, 4:36:55 PM12/11/18
to Ansible Project
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

Kai Stian Olstad

unread,
Dec 11, 2018, 5:33:03 PM12/11/18
to ansible...@googlegroups.com
On Tuesday, 11 December 2018 22:36:55 CET Baraka Baraka wrote:
> 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?

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


--
Kai Stian Olstad


Brian Coca

unread,
Dec 11, 2018, 6:43:17 PM12/11/18
to Ansible Project
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


--
----------
Brian Coca

Baraka Baraka

unread,
Dec 12, 2018, 4:28:32 AM12/12/18
to ansible...@googlegroups.com
Thank you so much! I was searching the hell out of google :) I missed these pages somehow.

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/_Toh4m9e2qo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7eBjAgNnZ2HUSUZ2cLqQe6i0eZbjo3a1sWw4e7WYqFXHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages