1 00:00:06,870 --> 00:00:08,720 - This lesson is about conditionals. 2 00:00:08,720 --> 00:00:10,570 To start it, let me get you an overview 3 00:00:10,570 --> 00:00:13,510 of the different conditionals available. 4 00:00:13,510 --> 00:00:15,150 So there are handlers. 5 00:00:15,150 --> 00:00:16,960 A handler is a test that only runs, 6 00:00:16,960 --> 00:00:20,130 if it is triggered by a task that has changed something. 7 00:00:20,130 --> 00:00:21,136 It's very convenient 8 00:00:21,136 --> 00:00:24,787 because that allows you to not do anything, 9 00:00:24,787 --> 00:00:27,520 if no changes were required. 10 00:00:27,520 --> 00:00:30,140 Handlers make your playbook more efficient. 11 00:00:30,140 --> 00:00:31,530 There are items. 12 00:00:31,530 --> 00:00:34,470 Items can be used to iterate over a list. 13 00:00:34,470 --> 00:00:37,250 So you can process easily, all the different items 14 00:00:37,250 --> 00:00:38,453 that are in an array. 15 00:00:39,420 --> 00:00:40,410 There is when. 16 00:00:40,410 --> 00:00:43,490 When is used for conditional task execution. 17 00:00:43,490 --> 00:00:46,230 So it allows you to only run a specific task 18 00:00:46,230 --> 00:00:49,240 if something else is true. 19 00:00:49,240 --> 00:00:50,290 There are blocks. 20 00:00:50,290 --> 00:00:51,800 Blocks can be used to implement 21 00:00:51,800 --> 00:00:53,990 if-then-else-like statements. 22 00:00:53,990 --> 00:00:55,160 Then we have a register. 23 00:00:55,160 --> 00:00:56,530 We've already seen register, 24 00:00:56,530 --> 00:00:59,330 but register is very important in conditionals 25 00:00:59,330 --> 00:01:00,810 because it's a useful help 26 00:01:00,810 --> 00:01:03,960 to record the result of a task in a variable. 27 00:01:03,960 --> 00:01:05,270 And there is fail. 28 00:01:05,270 --> 00:01:07,510 Fail is a model that is used to perform 29 00:01:07,510 --> 00:01:09,800 a specific task on failure. 30 00:01:09,800 --> 00:01:12,570 And it helps you in doing better failure handler. 31 00:01:12,570 --> 00:01:15,573 In the next couple of videos, you'll learn all about them.