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
Hi All.
Did anyone looked at having stdout printing as it comes or it is still hard to implement?
When it comes to calling third-party bash scripts - not being able to show its output is quite limiting when implementing any deployment process (some legacy scripts run 1-2 hours for example giving lot of output which can’t be returned as json)
Async mode could be upgraded to capture intermediate stdout/stderr as it comes in, possibly.
I don’t want this done for non-async modes as it wouldn’t make architectural sense.
Hey Mike!
Hope all is well, wondering if there any updates on outputting stdout/stderr ?
Thanks!
nvrmind…
I see your comments in another thread… and you pointed to http://docs.ansible.com/playbooks_async.html
thanks