You want:
body_format: json
body:
specs:
- id: "{{ item.0.uuid }}"
name: "{{ item.2 }}"
On Thu, Apr 4, 2019 at 4:41 AM <[email protected]> wrote:
> Here are my body's model
>
> {
> "specs": [
> {
> "name": "test",
> "id": "7dcf2db8-858e-4c00-bbde-e0c5c734770c"
> }
> ]
> }
>
>
> trying to convert this last for uri module
> body_format: json
> body:
> specs:
> id: "{{ item.0.uuid }}"
> name: "{{ item.2 }}"
>
> how to convert this last correctly ? switch to raw ?
>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b9a41bd1-f609-45e8-9147-d2dfc777dec4%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/b9a41bd1-f609-45e8-9147-d2dfc777dec4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Matt Martz
@sivel
sivel.net
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAD8N0v_upB2v6x6FUtev6Q8r571QJzSzSVS29JgsENTe4wdWzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.