What are tasks?

A task represents a single action within a playbook that we can perform on a managed node. Tasks make up plays and leverage modules to perform specific actions like installing software, copying files, managing users, etc.

In order to define a task, we have to specify a name, the module we’d like to use, and other relevant parameters. Here’s the basic syntax for defining a task:

Get hands-on with 1200+ tech skills courses.