Playbooks are simply sets of instructions that we create for Ansible to configure, deploy, and manage the nodes. These act as guidelines, using Ansible to perform a certain set of tasks on individuals or groups. Think of Ansible as your drawing book, playbooks as your colors, and managed nodes as the picture. Taking that example, playbooks decides what color needs to be added to which part of the picture, and the Ansible framework performs the task of executing the playbook for the managed nodes.
Playbooks are written in a basic text language referred to as YAML Ain't Markup Language (YAML). Playbooks consist of configurations to perform certain tasks on managed nodes. Additionally, playbooks are used to define a workflow in which, based upon conditions (such as a different type of device or different type of OS), specific tasks can be executed, and validations...