Ansible v2.0 (master branch) not showing each item in with_items

Hey there guys, hope everyone is well :slight_smile:

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

e.g. playbook

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

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

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

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.

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

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

Really appreciate all your help and time!
Fotis

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