Brackets is the correct way to display lists variables, which your variable
apparently is.



On Tue, 10 Nov 2020 at 14:14, Pravin V <[email protected]> wrote:

> Hello Everyone,
> Below is the output of the task
> json:
>       resourceIds:
>       - 66523
>
> and I'm trying to fetch the resourceIDs into the task like below.
> RESOURCEID_LIST={{ resourceID.json.resourceIds }}
>
> But the issue is when I'm running the playbook, it is automatically
> putting the value in bracket []
> &RESOURCEID_LIST=[66523].
>
> How can we input the value without putting in the bracket.
>
> Thanks in advance.
>
> --
> 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/42cc9fff-b3fe-4584-bb0f-bdd580647822n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/42cc9fff-b3fe-4584-bb0f-bdd580647822n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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/CAL8fbwNSH07BWKXBQiWN5QunqXA5tGviZQaik4q7kSRBKwzDyA%40mail.gmail.com.

Reply via email to