# Ansible v2.0 (master branch) not showing each item in with\_items

**URL:** <https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856>\
**Category:** Ansible Project\
**Created:** [July 26, 2015, 8:58am UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856 "2015-07-26T08:58:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fotis\_Gimian](https://avatars.discourse-cdn.com/v4/letter/f/51bf81/32.png) [@Fotis\_Gimian](https://forum.ansible.com/u/Fotis_Gimian)\
**Post date:** [July 26, 2015, 8:58am UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856/1 "2015-07-26T08:58:19Z")

</div>

Hey there guys, hope everyone is well 🙂

I’m trying to use v2 (current master from GitHub) but, I’ve come across a little problem;

e.g. playbook

---

<div class="post-metadata">

**Author:** ![Fotis\_Gimian](https://avatars.discourse-cdn.com/v4/letter/f/51bf81/32.png) [@Fotis\_Gimian](https://forum.ansible.com/u/Fotis_Gimian)\
**Post date:** [July 28, 2015, 12:43pm UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856/2 "2015-07-28T12:43:11Z")

</div>

Apologies to “bump” this folks, but was curious if this is simply the new behaviour in 2.0 or this is a bug?

Cheers  
Fotis

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 28, 2015, 8:33pm UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856/3 "2015-07-28T20:33:11Z")

</div>

This was just fixed this morning, please try again with current head.

---

<div class="post-metadata">

**Author:** ![Fotis\_Gimian](https://avatars.discourse-cdn.com/v4/letter/f/51bf81/32.png) [@Fotis\_Gimian](https://forum.ansible.com/u/Fotis_Gimian)\
**Post date:** [July 28, 2015, 10:19pm UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856/4 "2015-07-28T22:19:43Z")

</div>

Thanks Brian, that seems to be a little better, but the progress is only displayed at the end of the run while Ansible 1.9.x displayed it progressively. Is this possible in 2.0?

I recently also had an idea on this same subject. In many cases where the data structure is large, the output of each item can be rather overwhelming. What do you think of an idea whereby users may customise the output of each item in the output.

e.g.

- name: do some stuff  
command: …  
item\_output: “{{ item.name }} ({{ item.category }})”  
with\_items:
- name: something  
category: something  
data1: bla  
data2: bla  
data3: bla  
data4: bla  
data5: bla
- name: something 2  
category: something 2  
data1: bla 2  
data2: bla 2  
data3: bla 2  
data4: bla 2  
data5: bla 2

Thanks for all your help  
Fotis

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 28, 2015, 10:23pm UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856/5 "2015-07-28T22:23:27Z")

</div>

currently output is at the end of the task, we will try to make it per  
item but might not be able to do so for 2.0

callback plugins are now much easier to make and use, so you should be  
able to change the output to match what you show and customize a  
callback easily.

---

<div class="post-metadata">

**Author:** ![Fotis\_Gimian](https://avatars.discourse-cdn.com/v4/letter/f/51bf81/32.png) [@Fotis\_Gimian](https://forum.ansible.com/u/Fotis_Gimian)\
**Post date:** [July 29, 2015, 12:44am UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856/6 "2015-07-29T00:44:28Z")

</div>

Progressive output would be greatly appreciated, particularly for longer tasks.

Thanks for the tip about callbacks, I’ll check them out tonight 🙂

Really appreciate all your help and time!  
Fotis

---

<div class="post-metadata">

**Author:** ![Fotis\_Gimian](https://avatars.discourse-cdn.com/v4/letter/f/51bf81/32.png) [@Fotis\_Gimian](https://forum.ansible.com/u/Fotis_Gimian)\
**Post date:** [July 29, 2015, 10:48am UTC](https://forum.ansible.com/t/ansible-v2-0-master-branch-not-showing-each-item-in-with-items/18856/7 "2015-07-29T10:48:37Z")

</div>

After doing a few fresh runs this evening with the newest master branch, I think that for me personally, the value of items being displayed is lost unless the output is progressive. In cases where I am installing say 20 packages with a single task, it’s impossible to know what’s currently happening or roughly where it’s at.

I also noticed displays a blank item at the end of each with\_items output (i.e. one extra line of output).

Would be absolutely awesome if this could be touched up before the beta if possible. I can’t thank you enough for all your dedication and work towards Ansible, I love it and am beginning to recommend it to our project teams.

Cheers  
Fotis
