To Display line{5-10} from file

12 views
Skip to first unread message

Akshay Jadhav

unread,
Feb 16, 2022, 3:06:19 AM2/16/22
to Ansible Project
Hi Guys,
can someone please tell how to display line 5 to line 10 from the registered file.
Thanks in advance.

Dick Visser

unread,
Feb 16, 2022, 3:36:36 AM2/16/22
to ansible...@googlegroups.com
debug: var=results.stdout_lines[5:10]
> --
> 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 ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/24142039-a1d3-4ba0-8b19-05be76167ba1n%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
Reply all
Reply to author
Forward
0 new messages