read_csv
Collection: community.general
Full Name: parallax.community.general.read_csv
Aliases: community.general.read_csv, read_csv
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Manage read csv
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| path | string | yes | Path to the CSV file to read | |
| key | string | Column name to use as dictionary key for the resulting data | ||
| delimiter | string | , | Field delimiter character | |
| fieldnames | string | Comma-separated list of field names to use as column headers | ||
| skipinitialspace | bool | false | Skip whitespace after the delimiter | |
| strict | bool | false | Raise an error on bad CSV input | |
| unique | bool | true | If true, require unique key values when using key parameter |
Example
- name: Example read_csv task
read_csv:
path: <your_path>