1. In Ansible, what is a playbook?
Playbooks are YAML-formatted files that describe the automation tasks Ansible performs on hosts. They contain plays, which map groups of hosts to roles, and tasks, which define the steps required to reach the desired system state. Playbooks are human-readable and form the foundation of Ansible automation.