mapping
A collection of named values, each written key: value, where every key appears once.
In more detail
Other languages call the same idea a dictionary, a map or an object. In YAML a key followed by a colon with nothing after it is a key with no value.
Example
A play is a mapping with keys such as name, hosts and tasks; a YAML inventory host with no settings still ends in a colon.Related terms
- YAML — A human-friendly text format for configuration, where indentation shows structure.
- YAML list — An ordered series of values, written in YAML as lines that each start with a dash and a space.
- JSON — A simple text format for structured data made of keys, values, lists and nested objects.
Taught in
- The Static Inventory File — Ansible Configuration Management at Scale
- Dynamic Inventory — 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
- Loops: One Task, Many Items — RHCE in Ansible (EX294): Automate Red Hat Systems