# How to resolve include with\_items deprecation warning without duplication

**URL:** <https://forum.ansible.com/t/how-to-resolve-include-with-items-deprecation-warning-without-duplication/13972>\
**Category:** Ansible Project\
**Created:** [November 22, 2013, 12:23pm UTC](https://forum.ansible.com/t/how-to-resolve-include-with-items-deprecation-warning-without-duplication/13972 "2013-11-22T12:23:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Chase](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jeremy\_Chase](https://forum.ansible.com/u/Jeremy_Chase)\
**Post date:** [November 22, 2013, 12:23pm UTC](https://forum.ansible.com/t/how-to-resolve-include-with-items-deprecation-warning-without-duplication/13972/1 "2013-11-22T12:23:34Z")

</div>

Hello,

I just updated to 1.4 and am trying to grok how to resolve the “include + with\_items” deprecation warning without introducing several redundant with\_items on each action. So far the only solution I’ve found is to put with\_items on each action of the included script. I don’t want to do that! Any other suggestions?

My current (working) include looks like this:

[https://gist.github.com/JeremyChase/7598637](https://gist.github.com/JeremyChase/7598637)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [November 22, 2013, 8:58pm UTC](https://forum.ansible.com/t/how-to-resolve-include-with-items-deprecation-warning-without-duplication/13972/2 "2013-11-22T20:58:55Z")

</div>

You should loop inside the task file.

This has been covered about eleventy billion times on the mailing list in the past, but you may wish to learn about this where you have a double loop going on.

[http://ansibleworks.com/docs/playbooks\_loops.html#id10](http://ansibleworks.com/docs/playbooks_loops.html#id10)
