can you provide a bit more context, i.e. where does the variable `stat_out`
comes from.
Or maybe even better prodvide what debugging the entire variable throws at you
debug:
var: stat_out
in order to see the data structur you are getting
> On 10/18/2023 8:02 AM CEST Veera <[email protected]> wrote:
>
>
> From the below debug module , I try filter the ouput
>
> - name: status of the output
> debug:
> msg: "status of {{serverName}} is {{ [9] | map('extract',
> stat_out[0].split(',')) }}"
> register: server_status
>
>
> The output is
>
> TASK [status of the output]
> *******************************************************************************************
> ok: [localhost] =>
> msg: 'status of client11 is ['' "Status": "Completed"'']'
>
>
>
> and when I try to still filter the output , but missing a delimiter (like
> cut -d: -f1).
>
>
> Expecting the output as below .
> msg: 'status of the server client11.example.com is [Completed]'
>
> Any String(Word) like Completed or Failed to be captured in []
>
>
>
--
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/1116918081.61568.1697617343143%40office.mailbox.org.