- This lesson is about conditionals.
To start it, let me get you an overview
of the different conditionals available.
So there are handlers.
A handler is a test that only runs,
if it is triggered by a task that has changed something.
It's very convenient
because that allows you to not do anything,
if no changes were required.
Handlers make your playbook more efficient.
There are items.
Items can be used to iterate over a list.
So you can process easily, all the different items
that are in an array.
There is when.
When is used for conditional task execution.
So it allows you to only run a specific task
if something else is true.
There are blocks.
Blocks can be used to implement
if-then-else-like statements.
Then we have a register.
We've already seen register,
but register is very important in conditionals
because it's a useful help
to record the result of a task in a variable.
And there is fail.
Fail is a model that is used to perform
a specific task on failure.
And it helps you in doing better failure handler.
In the next couple of videos, you'll learn all about them.