I have two lists:
"list1": [
"xxxx"
"yyyyy",
"yyyyy",
"yyyyy",
]
"list2": [
"xxxx"
"yyyyy",
"yyyyy",
"yyyyy",
]
I do a loop on list2 to add it to list1, it works but adds it in new line like this:
"xxxx",
"yyyyy",
"yyyyy",
"yyyyy,
"xxxx",
"yyyyy",
"yyyyy",
"yyyyy",
the loop I used
set_fact:
list1: "{{ list1 |default([]) + list2 }}"
loop: "{{ list2 }}"
meanwhile expected result:
"xxxxxxxx",
"yyyyyyyyyy",
"yyyyyyyyyy",
"yyyyyyyyyy,