# Will \`with\_\*\` loops be removed once 2.10 is out?

**URL:** <https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757>\
**Category:** Ansible Project\
**Created:** [April 22, 2020, 1:32pm UTC](https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757 "2020-04-22T13:32:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [April 22, 2020, 1:32pm UTC](https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757/1 "2020-04-22T13:32:06Z")

</div>

Is the a way to combine `with_` and a lookup from a collection? E.g. the flattened lookup from community.general.

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [April 22, 2020, 1:48pm UTC](https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757/2 "2020-04-22T13:48:24Z")

</div>

Hi Nick,

> Is the a way to combine `with_` and a lookup from a collection? E.g.  
> the flattened lookup from community.general.

you can use "with\_namespace.collection.plugin:".

Looks ugly, but works 🙂

Cheers,  
Felix

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [April 22, 2020, 1:58pm UTC](https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757/3 "2020-04-22T13:58:13Z")

</div>

Thanks for the tip!

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [April 22, 2020, 2:04pm UTC](https://forum.ansible.com/t/will-with-loops-be-removed-once-2-10-is-out/32757/4 "2020-04-22T14:04:18Z")

</div>

Hi,

also (forgot to mention that in my previous mail), in 2.10 the short  
name will automatically redirect to the long name for plugins (and  
modules) that were already in 2.9. I.e. with\_flattened will continue to  
work. (Except if you don't install the community.general collection,  
then of course it won't, since it's a redirection.)

The redirect behavior is currently not available in devel (if you have  
tried that), but will be hopefully soon...

Cheers,  
Felix
