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

Taught in

References

Certification courses