Show output of shell tasks as they occur

9 views
Skip to first unread message

Angel Rengifo Cancino

unread,
Aug 9, 2019, 9:22:01 AM8/9/19
to Ansible Project
Hello guys:

Not sure whether this is possible or not, but here's my question. I'm running tasks with Ansible by using command or shell module. I am able to see the output of such commands by registering stdout to a variable and later showing it with debug module, but I must wait for  the shell task ending before seeing their output.

Is there a way to see such output (stdout/stderr) dynamically? Something similar to tail -f

If anybody have any idea, please share some guidance.

Thanks in advance

Kai Stian Olstad

unread,
Aug 9, 2019, 8:27:18 PM8/9/19
to ansible...@googlegroups.com
On 09.08.2019 15:22, Angel Rengifo Cancino wrote:
> Hello guys:
>
> Not sure whether this is possible or not, but here's my question. I'm
> running tasks with Ansible by using command or shell module. I am able to
> see the output of such commands by registering stdout to a variable and
> later showing it with debug module, but I must wait for the shell task
> ending before seeing their output.
>
> Is there a way to see such output (stdout/stderr) dynamically? Something
> similar to tail -f

This is not possible.


--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages