Let's take a look at some example tasks that we can create for the Ansible playbook.

Create tasks

Ansible tasks include an Ansible module and a reference to the Jinja2 templates. These tasks are called from the Ansible playbook. A YAML task file is required for each Jinja2 template file.

Here are some examples of tasks:

Get hands-on with 1200+ tech skills courses.