Playbooks
Learn about the Ansible Playbooks in this lesson.
We'll cover the following...
Ansible playbooks
Automating tasks in Ansible requires a set of instructions or “plays.” You must provide Ansible with instructions on what actions to perform on the resources it manages. You do that with playbooks. A playbook is a list of tasks that run in order from top to bottom.
Think of a playbook as a sports coach’s playbook. A coach has a list of plays that they recommend their team take to win the game. Ansible intends to “win the game” with its sets of plays in its playbook to create or modify resources.
Each “play” in a playbook is called a task. Each task is a specific action Ansible takes on the resource it’s ...