Re: [ansible-project] How to capture/filter stdout_lines

2019-04-11 Thread Saranya Nagaraj
Thankyou Sebastian On Apr 10, 2019 11:16 AM, "Sebastian Meyer" wrote: > On 10.04.19 04:38, Saranya N wrote: > > Stdout_lines that I get contains strings , json in different lines. > > > > I want to capture the last line and copy those contents to a a new Json > file. > > > > How do I capture

Re: [ansible-project] How to capture/filter stdout_lines

2019-04-09 Thread Sebastian Meyer
On 10.04.19 04:38, Saranya N wrote: > Stdout_lines that I get contains strings , json in different lines. > > I want to capture the last line and copy those contents to a a new Json file. > > How do I capture the last line from the registered variable. > > I tried this and it didn't work. > >

[ansible-project] How to capture/filter stdout_lines

2019-04-09 Thread Saranya N
To elaborate I don't want to use indeed value like sdout_lines[5] which works but is there a way to choose it by default ? -- 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,

[ansible-project] How to capture/filter stdout_lines

2019-04-09 Thread Saranya N
Stdout_lines that I get contains strings , json in different lines. I want to capture the last line and copy those contents to a a new Json file. How do I capture the last line from the registered variable. I tried this and it didn't work. "{{ Regvar.stdout_lines | last }}" -- You received