YAML list
An ordered series of values, written in YAML as lines that each start with a dash and a space.
In more detail
Each item can itself be a value, a mapping or another list. Lists keep their order, unlike the keys of a mapping.
Example
A playbook is a list of plays, and tasks is a list of tasks, which is why each begins with a dash.Related terms
- YAML — A human-friendly text format for configuration, where indentation shows structure.
- mapping — A collection of named values, each written key: value, where every key appears once.
- loop — A task keyword that runs the same task once for each item in a list, with the current item available as item.
Taught in
- Playbook Syntax And YAML — Ansible Configuration Management at Scale
- Loops — Ansible Configuration Management at Scale
- Static Inventories: Hosts, Groups And Groups Of Groups — RHCE in Ansible (EX294): Automate Red Hat Systems
- Anatomy Of A Playbook: Plays, Tasks And Modules — RHCE in Ansible (EX294): Automate Red Hat Systems