1 00:00:07,020 --> 00:00:08,810 - Welcome to lesson six. 2 00:00:08,810 --> 00:00:10,760 In this lesson, you'll learn about the different ways 3 00:00:10,760 --> 00:00:12,640 that Ansible can be configured 4 00:00:12,640 --> 00:00:15,360 for conditional task execution. 5 00:00:15,360 --> 00:00:18,620 We'll start with an overview of the different conditionals 6 00:00:18,620 --> 00:00:21,210 and next we'll start exploring them one by one, 7 00:00:21,210 --> 00:00:23,280 starting with the Handlers. 8 00:00:23,280 --> 00:00:24,980 After Handlers, which only run 9 00:00:24,980 --> 00:00:26,810 if a task has changed something, 10 00:00:26,810 --> 00:00:29,180 you'll learn about the powerful when statement, 11 00:00:29,180 --> 00:00:30,650 which allows you to run tasks 12 00:00:30,650 --> 00:00:32,543 if specific conditions are true. 13 00:00:34,040 --> 00:00:35,630 Next you'll learn how to use register 14 00:00:35,630 --> 00:00:37,980 in combination with when statements, 15 00:00:37,980 --> 00:00:40,380 after which you will learn about blocks and loops. 16 00:00:40,380 --> 00:00:43,100 And in the last video, before the end of lesson lab, 17 00:00:43,100 --> 00:00:45,070 you will learn how to use the fail module 18 00:00:45,070 --> 00:00:46,763 to deal with failure efficiently.