Appending a variable to a list, howto? - "Error was can only concatenat e list (not \"unicode\") to list"}"

127 views
Skip to first unread message

Moshe Suberri

unread,
Apr 21, 2016, 10:23:10 PM4/21/16
to Ansible Project

Error message: fatal: [localhost]: FAILED! => {"failed": true, "msg": "an unexpected type error occurred. Error was can only concatenate list (not \"unicode\") to list"}


Example:
my_list=[]
my_var="var1"

my_list= mylist+my_var

final results:
my_List=["var1"]

how do I do that?


Reply all
Reply to author
Forward
0 new messages