Ansible playbook is the actual building block supporting all of the use cases of the Ansible tool. The variety in YAML tags are divided into four major types which are known as-

  • Declaration
  • Vars
  • Tasks
  • Handlers

Ansible playbooks are also a combined set of commands that has the capability to perform huge tasks and they are also written in YAML file format.

BY Best Interview Question ON 05 Oct 2019