I was only concerned with unix and would use this ad-hoc command:
$ ansible all -m command -a uptime -o

> On Sep 18, 2020, at 13:21, madan gopal <[email protected]> wrote:
> 
> Hi Praveen,
> 
> I am looking for a script to take user input and provide system uptime for 
> both Windows and Linux environments.
> 
> Any assistance with this playbook is greatly appreciated.
> 
> Regards,
> Madan
> 
> On Wednesday, March 4, 2020 at 2:12:10 AM UTC+5:30 [email protected] wrote:
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/9b3c09f7-0010-4fd3-a78c-7551c74c4b02n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ansible-project/9b3c09f7-0010-4fd3-a78c-7551c74c4b02n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/7185F3AF-3D7B-429E-9693-CD340A3746FE%40gmail.com.

Reply via email to