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
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.
>
>
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,
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