Any comments on my suggestion ?
On Thu, Feb 13, 2014 at 10:56 AM, Rumen Telbizov <telbi...@gmail.com> wrote: > Thanks for starting a discussion. > > Here is how I see a feature like this. > How about if we introduce a new keyword called say "print: " similar to > debug but being an auxiliary keyword rather than the main task. So with > this you can control some extra output that comes after [changed] > [servername] => "here's my custom output".If this print keyword exists in > a task that has a loop then it will basically be printed on every iteration. > > Now if you don't specify print: then ansible keeps doing what it does now > - it prints nothing for a regular task and the full "item" content for a > task with a loop. In other words the default won't change the current > behavior. > If we *do* have the print keyword present though then ansible still prints > the [changed] [servername] part but after it, it also adds whatever > "print" says - which if in a loop might contain the whole item if the > author of the playbook decided to do so or maybe only parts of it: > {{item.blah}} > is now {{item.changed}} or something ? > > My thoughts only though. > > Cheers, > Rumen Telbizov > > > > On Thu, Feb 13, 2014 at 10:07 AM, Jerome Wagner <aky...@gmail.com> wrote: > >> Maybe there could be an option to simply control the total size of each >> output line. >> the length-cut is simple to implement and I don't see how you could >> smarty extract and show only the important information. >> length=0 (default) means: I want to see everything >> >> >> Le jeudi 13 février 2014 19:01:16 UTC+1, Michael DeHaan a écrit : >>> >>> Also this wasn't posted about exit codes (shown only with -v), it was >>> posted about listing the item it was walking over in a loop, right? >>> >>> >>> >>> >>> >>> >>> On Thu, Feb 13, 2014 at 1:00 PM, Michael DeHaan <mic...@ansible.com>wrote: >>> >>>> I'm more curious how it would work when the item is useful and >>>> neccessary in some cases and not others. >>>> >>>> It does not feel like a global setting and it also should not be >>>> *nothing* in the task output, or should it? >>>> >>>> Also, trying to avoid an additional task keyword.. >>>> >>>> >>>> >>>> >>>> On Thu, Feb 13, 2014 at 12:48 PM, Nik Maslov <azp...@gmail.com> wrote: >>>> >>>>> Maybe just a changeable logging level will do? >>>>> >>>>> Sometimes I just want to see exit code from operation, rather than a >>>>> full blown trace. >>>>> >>>>> >>>>> On Thursday, February 13, 2014, Michael DeHaan <mic...@ansible.com> >>>>> wrote: >>>>> >>>>>> So let's not file a request, because the first thing I will ask is to >>>>>> have a discussion here. Let's talk about what you want to do and if we >>>>>> can >>>>>> come to something. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Feb 13, 2014 at 12:38 PM, Rumen Telbizov >>>>>> <telbi...@gmail.com>wrote: >>>>>> >>>>>>> It seems like there isn't a way to customize the output of an item >>>>>>> (or otherwise any task). >>>>>>> Would anybody else be interested in having this feature? I could >>>>>>> file a request/ticket with a suggestion. >>>>>>> >>>>>>> -- >>>>>>> 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 ansible-project+unsubscr...@googlegroups.com. >>>>>>> To post to this group, send email to ansible-project@googlegroups. >>>>>>> com. >>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>> >>>>>> >>>>>> -- >>>>>> 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 ansible-project+unsubscr...@googlegroups.com. >>>>>> To post to this group, send email to ansible-project@googlegroups.com >>>>>> . >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>> -- >>>>> 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 ansible-proje...@googlegroups.com. >>>>> To post to this group, send email to ansible...@googlegroups.com. >>>>> >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>> >>>> >>> -- >> 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 ansible-project+unsubscr...@googlegroups.com. >> To post to this group, send email to ansible-project@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Rumen Telbizov > Unix Systems Administrator <http://telbizov.com> > -- Rumen Telbizov Unix Systems Administrator <http://telbizov.com> -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.