If the log file is generated in the /tmp/ folder you can use the fetch
command to copy the log back to the ansible controller and use whatever
method you want to display the content (maybe shell module with cat
command)
An example of the fetch module is sohwn below
- name: Copy
On Wednesday, 5 September 2018 03:44:48 UTC+5:30, Kaushal Shriyan wrote:
>
> Hi,
>
> Is there a way to see the remote shell script output to the controller
> node terminal screen (stdout) ? I have the below shell script on a remote
> node.
>
> - name: Execute the script
>#command: sh