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 On 29 July 2015 at 08:23, Brian Coca <[email protected]> wrote: > 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. > > On Tue, Jul 28, 2015 at 6:19 PM, Fotis Gimian <[email protected]> > wrote: > > 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 > > > > On Monday, July 27, 2015 at 5:08:36 AM UTC+10, Fotis Gimian wrote: > >> > >> 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 > >> > >> --- > >> - hosts: localhost > >> gather_facts: no > >> tasks: > >> - shell: /usr/bin/true > >> with_items: > >> - hello > >> - there > >> - friends > >> > >> Ansible 1.9 output > >> > >> PLAY [localhost] > >> ************************************************************** > >> > >> > >> TASK: [shell /usr/bin/true] > >> *************************************************** > >> > >> changed: [localhost] => (item=hello) > >> > >> changed: [localhost] => (item=there) > >> > >> changed: [localhost] => (item=friends) > >> > >> > >> PLAY RECAP > >> ******************************************************************** > >> > >> localhost : ok=1 changed=1 unreachable=0 > >> failed=0 > >> > >> > >> Ansible 2.0 (master) output > >> > >> PLAY > >> > **************************************************************************** > >> > >> > >> TASK [command] > >> ****************************************************************** > >> > >> changed: [localhost] > >> > >> > >> PLAY RECAP > >> ********************************************************************** > >> > >> localhost : ok=1 changed=1 unreachable=0 > >> failed=0 > >> > >> > >> Is there a way to get this additional information back? > >> > >> > >> Thanks heaps > >> > >> Fotis > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ansible Project" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected]. > > To post to this group, send email to [email protected]. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/ansible-project/e8d64d0f-9cac-46e0-8a65-fb7f90e11b7e%40googlegroups.com > . > > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Brian Coca > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKOAcUzntfr7cozqvDKhVPh%2BYU%3DcAJxJW%3D2EASCOCd8jez%2BJXQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
