1 00:00:06,550 --> 00:00:08,340 - Now, that we are at the end of this lesson, 2 00:00:08,340 --> 00:00:09,223 let's do a lab. 3 00:00:10,160 --> 00:00:11,350 So, in this lab, 4 00:00:11,350 --> 00:00:13,310 it's all about idempotency. 5 00:00:13,310 --> 00:00:16,010 Idempotency is a great thing in Ansible. 6 00:00:16,010 --> 00:00:17,920 It ensures that running a playbook 7 00:00:17,920 --> 00:00:19,370 always gives the same result, 8 00:00:19,370 --> 00:00:22,690 no matter what the current state of the managed machine is. 9 00:00:22,690 --> 00:00:24,910 You have previously learned that the command module 10 00:00:24,910 --> 00:00:26,160 as well as related modules 11 00:00:26,160 --> 00:00:29,320 like shell and raw are not idempotent by nature. 12 00:00:29,320 --> 00:00:31,920 However, if you're using a register in a smart way, 13 00:00:31,920 --> 00:00:35,800 you can use even these modules in an idempotent way. 14 00:00:35,800 --> 00:00:38,010 And that is what this lab is all about. 15 00:00:38,010 --> 00:00:40,160 Write a playbook that creates a user 16 00:00:40,160 --> 00:00:41,590 that is using the command module 17 00:00:41,590 --> 00:00:44,170 in such a way that the playbook is idempotent. 18 00:00:44,170 --> 00:00:45,003 Good luck.