Basically, a task is a single unit of provisioning. Each play must define the hosts on which the tasks will be executed. For example, here's the syntax to install apache using the yum command:
tasks:
- name: Install Apache Webserver
yum: pkg=httpd state=latest