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.