Tristan Le Guern

--- - hosts: localhost gather_facts: no vars: - results: - files: - path: /var/db/something owner: foo - path: /etc/something.cfg owner: foo - files: - path: /usr/X11R6/lib/libdmx.so.2.0 owner: bar tasks: - debug: var: results - name: Merge into one list of objects. debug: msg: "{{ (results | combine(list_merge='append')).files }}" - name: Merge into one list of paths. debug: msg: "{{ (results | combine(list_merge='append')).files | map(attribute='path') }}"

Merge list of similar lists