Hi,

I'm trying to assign an array to a variable using set_fact as proposed 
at http://stackoverflow.com/a/23522774. However, it doesn't work as 
expected :

TASK: [set_fact roles="['dddd', 'eeeew', 'pffff', 'sssss']"] ************
ok: [master]

TASK: [set_fact roles="{{ roles + ['xxxx'] }}"] 
*******************************
fatal: [master] => Failed to template roles="{{ roles + ['xxxx'] }}": an 
unexpected type error occurred. Error was coercing to Unicode: need string 
or buffer, list found


The first set_fact assign a string to roles and not an array as expected ...

-- 
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/82718a5d-ba19-4601-aae3-f590422074a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to