Sorry to have bother you.
In fact :
dict2: "{{dict1}}"
works well.
My mistake.
Best regards,
Julien
On Wednesday, March 5, 2014 12:40:18 PM UTC+1, [email protected] wrote:
>
> Hi,
>
> I would like to assign dictionnary variable to a another variable like
> that :
>
> ---
> dict1:
> key1: 'value1'
> key2: 'value2'
>
>
> dict2: {{dict1}}
> This doesn't work because, it's break the yaml syntax, if I use dict2:
> "{{dict1}}" , dict2 is a string where dict1 is transform as a string.
>
> How can I make the assigment to have dict2 as a dictionnary and not a
> string ?
>
> Thanks in advance for your answers,
>
> Best regards,
> Julien
>
--
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/fa84e3a6-7041-4b92-9ddd-94c0fd552bdf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.