multiple elements from list

Just a guess:

debug: msg="{{item.stdout_lines}}"
with_items: packages.results

or just output the whole:

debug: var=packages
or
debug: var=packages.results

What do you want to achieve?

Johannes