In the previous tutorial you learned how to use Ansible ad-hoc commands to run a single task on your managed hosts. In this tutorial you will learn how to automate multiple tasks on your managed hosts by creating and running Ansible playbooks. .
To better understand the differences between Ansible ad-hoc command and Ansible playbooks you can think of Ansible ad-hoc commands as Linux commands and playbooks as bash scripts.
Ansible ad-hoc commands are ideal to perform tasks that are not executed frequently such us getting servers uptime retrieving system information etc. .
On the other hand Ansible playbooks are ideal to automate complex tasks like system patches application deployments firewall configurations user management etc.
Please notice that I have included all the playbooks scripts and files that I am going to discuss in this series in this GitHub repository.
Before you follow this Ansible Playbook tutorial you should refer to the setup mentioned in the first chapter of the Ansible series.