It's currently not possible. The closest thing we have is the way
async can poll in a playbook. It may be possible to fiddle with
async_wrapper
to get it to do something like this. It will probably have to pass
in some additional flags over to the async command or feed them to
async_wrapper
somehow.
I will warn you that the async code is not trivial and has warped my
brain on many occasions. However, I think this may make it more fun
to work on :)
--Michael
On Tue, Nov 13, 2012 at 10:52 AM, Yun Zheng Hu <
yunzh...@gmail.com> wrote:
> Is it possible to follow the stdout/stderr output as it comes in? Instead
> for waiting for the command to finish I want to see the output as it comes
> in (preferably line buffered).
>
> For instance, grepping for something in a large log file or on several
> machines or maybe even tail -f a log file.
> If it's currently not possible I would be interested to add this feature
> myself :)
>
> Regards,
> Yun
>
> --
>
>