Courseiva

EX294

Study mode — explanations shown

1

Transform data with filters and plugins

medium

The playbook uses the community.general.parse_csv filter. Assuming the collection is installed, what is the type and structure of the 'parsed' variable?

Exhibit

Refer to the exhibit.

- name: Parse CSV
  hosts: localhost
  vars:
    csv_data: "name,age\nAlice,30\nBob,25"
  tasks:
    - name: Convert to list of dicts
      set_fact:
        parsed: "{{ csv_data | community.general.parse_csv }}"

    - debug:
        var: parsed
0 of 18 answered