Ansible Playbooks are configuration management scripts written in YAML (Yet Another Markup Language). They are used to automate the deployment, configuration, and management of systems.
YAML (Yet Another Markup Language) is a human-readable data serialization format widely used in configuration files, including Ansible Playbooks.
List Representation
In YAML, lists are represented using -
(hyphen).
Example:
--- # A list of fruits
Fruits:
- Mango
- Strawberry
- Banana
- Grapes
- Apple
Dictionary Representation
Key-value pairs (dictionaries) are written in the following format:
--- # Customer details
customer:
name: Rajput
job: Trainer
skills: Ansible
experience: 8 Years
--
and end with ...
(optional).