Hi JYL,

Here is what i mean. 


TASK [debug] 
***********************************************************************************************************************************

ok: [192.168.56.50] => (item= 00:48:30 up 2 min,  1 user,  load average: 
0.05, 0.06, 0.03) => {

    "msg": " 00:48:30 up 2 min,  1 user,  load average: 0.05, 0.06, 0.03"

}

ok: [192.168.56.50] => (item=4.1.12-124.36.4.el7uek.x86_64) => {

    "msg": "4.1.12-124.36.4.el7uek.x86_64"

}



Can we customize above output something like below

TASK [debug] 
***********************************************************************************************************************************


    "msg": "Server Uptime is -> [' 00:50:34 up 4 min,  1 user,  load 
average: 0.01, 0.04, 0.03']"


    "msg": "Server Kernel is --> ['4.1.12-124.36.4.el7uek.x86_64']"








On Tuesday, March 3, 2020 at 12:55:40 PM UTC-8, Jean-Yves LENHOF wrote:
>
> Hi, 
>
> What is nicely formatted ? 
>
> Please show on an example what you want 
>
> Regards, 
>
> JYL 
>
> Le 03/03/2020 à 21:42, Parveen Datt a écrit : 
> > Hi Team 
> > 
> > I have written a playbook and using debug variable we are reading the 
> output in multiple play. Is there any way we can customize the output of 
> each registered variable and print it nicely formatted . Any suggestion 
> would be appreciated 
> > 
> > Thx 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a2a59ad5-fcea-4d84-8f09-ec954da750cf%40googlegroups.com.

Reply via email to