Hello, you can find an example of using `first_found` with `loop` here: https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#selecting-files-and-templates-based-on-variables.
Thanks, Martin On Wed, Jun 12, 2019 at 2:39 PM Ryad karkar <[email protected]> wrote: > > Hi, > > You can see one exemple for loop : > > - name: "with_list -> loop" > debug: > msg: "{{ item }}" > loop: > - my first word > - my second word > > When i execut this task, the result is : > > [item=1] => my first word > [item=2] => my second word > > Do you understand ? > > Regards, > > Le mercredi 12 juin 2019 14:13:58 UTC+2, starflighter one a écrit : >> >> Hi all, >> >> how can I write with_first_found as loop? >> >> I can't find an example at >> https://docs.ansible.com/ansible/devel/porting_guides/porting_guide_2.5.html#migrating-from-with-x-to-loop >> Can you give me an example? >> >> Thanks, >> starflighter > > -- > 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 post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/217b6472-47c3-414c-ae84-a67332f179b3%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADDq2ENuxaRC-QSWbqLr%2BXF9%3D66TxzE3W%3Dco3qg0bzdMYk0uOg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
