# can't isolate stdout using register, with\_items

**URL:** <https://forum.ansible.com/t/cant-isolate-stdout-using-register-with-items/18069>\
**Category:** Ansible Project\
**Created:** [April 23, 2015, 9:12pm UTC](https://forum.ansible.com/t/cant-isolate-stdout-using-register-with-items/18069 "2015-04-23T21:12:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![senorsmile](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/senorsmile/32/9024_2.png) [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Post date:** [April 23, 2015, 9:12pm UTC](https://forum.ansible.com/t/cant-isolate-stdout-using-register-with-items/18069/1 "2015-04-23T21:12:40Z")

</div>

I am attempting to display the debug output of multiple items from a previous resource(including as complete an example as possible; not using roles for this):

`

---

<div class="post-metadata">

**Author:** ![David\_Smith](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@David\_Smith](https://forum.ansible.com/u/David_Smith)\
**Post date:** [April 25, 2015, 11:25am UTC](https://forum.ansible.com/t/cant-isolate-stdout-using-register-with-items/18069/2 "2015-04-25T11:25:53Z")

</div>

I believe that this is because **with\_items** will always show you the item being used for the task, as well as the output of the task using that item. That’s why you see both the **item** and **msg** fields in the JSON. Not sure how to tell Ansible to NOT output the **item** part of a **with\_items** task.

In your **with\_items** , you could always **set\_fact** with just the **stdout** , and then loop again over just those facts.
