Seeing a stream of output from stdout while forked commands execute?

I need to see two things when using the shell command with ansible.

  1. Which hosts it’s attempting…

  2. Which hosts it’s contacted , executed a command on, but hasn’t yet received a value.

  3. The output, as it’s streaming back from clients.

Without this it’s difficult to use ansible for long running commands such as cluster repair jobs.

With Cassandra you often have to run nodetool repair/cleanup and these take a while.

I want to know which nodes are being cleaned so I can monitor them.

1. can be done via callback

2 and 3 are not how ansible works, there it only returns data once the
execution is complete.

async tasks are the exception to this but they don't return any other
data than the process is 'running', they would need to be modified to
support this