You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
On 9/21/20 7:12 AM, kumare...@gmail.com wrote:
> Hi Brae,
>
> Thanks for the help was able to get the desired output.But the output are in same line is there way to print new line
> for each service?
>
> TASK [debug]
> ***********************************************************************************************************************************************************
> ok: [test] => {
> "msg": "httpd.service Running\nntpd.service Running\n"
> }
>
> Expected output:
>
> httpd.service Running
> ntpd.service Running
>
> Regards
> Kumar
>
Hello Kumar,
use the YAML callback plugin, e.g in ansible.cfg:
# Use the YAML callback plugin.
stdout_callback = yaml