1 00:00:01,330 --> 00:00:06,000 In this video, we are going through the installation of virtualization software. 2 00:00:06,010 --> 00:00:13,390 So the very first thing we have to do is to identify whether we are using a laptop or a desktop that's 3 00:00:13,390 --> 00:00:15,850 going to be your home lab. 4 00:00:16,270 --> 00:00:21,040 It could either run a mac operating system or Windows operating system. 5 00:00:21,670 --> 00:00:29,350 Then the next thing we will have to do is install a virtualization software on it, the virtualization 6 00:00:29,350 --> 00:00:29,860 software. 7 00:00:29,860 --> 00:00:33,730 For this course, we will be using Oracle VirtualBox. 8 00:00:34,240 --> 00:00:43,960 If you're using Apple Mac OS with M1 Chip, then you will have to go with UTM virtualization software. 9 00:00:44,980 --> 00:00:45,340 All right. 10 00:00:45,340 --> 00:00:48,700 So first thing is, what is a virtualization software? 11 00:00:49,570 --> 00:00:57,670 Virtualization software is a software that runs on top of your existing operating system and it allows 12 00:00:57,670 --> 00:01:03,610 you to create virtual machines on top of your existing operating system. 13 00:01:03,610 --> 00:01:09,100 So you do not have to remove the existing operating system. 14 00:01:10,630 --> 00:01:12,730 What is Oracle VirtualBox? 15 00:01:12,730 --> 00:01:16,000 So Oracle VirtualBox is a free software. 16 00:01:16,300 --> 00:01:23,470 It's a virtualization software by Oracle that we will be using in this course. 17 00:01:23,470 --> 00:01:26,830 You could go where the VMware workstation player as well. 18 00:01:26,830 --> 00:01:34,090 If that is something that you are familiar with and that's something you prefer, then we will go ahead 19 00:01:34,090 --> 00:01:40,600 and download the Oracle VirtualBox and then once it's downloaded, we'll go ahead and install Oracle 20 00:01:40,600 --> 00:01:42,970 VirtualBox on our computer. 21 00:01:43,420 --> 00:01:44,920 My computer? 22 00:01:45,700 --> 00:01:50,410 Is using a Windows 64 bit operating system. 23 00:01:50,860 --> 00:01:58,000 If you are using Windows computer, then you could go to your search menu and type my computer or this 24 00:01:58,000 --> 00:02:02,200 PC right click and go to properties here. 25 00:02:02,200 --> 00:02:07,770 You'll find out the process, that information and the memory that you have installed a type of computer. 26 00:02:07,780 --> 00:02:11,160 As I said previously, it has to be a 64 bit operating system. 27 00:02:11,170 --> 00:02:11,600 All right. 28 00:02:11,650 --> 00:02:16,900 Once you have confirmed, now it's time to go ahead and download the Oracle VirtualBox. 29 00:02:17,260 --> 00:02:23,320 By the way, if you already are familiar with Oracle VirtualBox or you already have a virtual machine 30 00:02:23,320 --> 00:02:30,250 running Linux operating system to install Ansible, then you could simply skip this entire video. 31 00:02:31,130 --> 00:02:31,490 All right. 32 00:02:31,490 --> 00:02:36,470 If you're doing this for the first time, then let's go ahead and start up your browser and your browser 33 00:02:36,470 --> 00:02:37,110 of your choice. 34 00:02:37,130 --> 00:02:41,600 I'll go ahead with Firefox and here I'll type it. 35 00:02:41,600 --> 00:02:44,300 In download Oracle VirtualBox. 36 00:02:45,170 --> 00:02:48,530 Go to the one that says VirtualBox or click on it. 37 00:02:50,730 --> 00:02:54,030 And pick your operating system since the operating system is windows. 38 00:02:54,030 --> 00:02:56,190 So we'll pick windows host. 39 00:02:57,240 --> 00:03:00,810 And it will start the download process once it's downloaded. 40 00:03:01,020 --> 00:03:01,860 Perfect. 41 00:03:01,890 --> 00:03:03,980 Go ahead and click Open File. 42 00:03:03,990 --> 00:03:07,050 Now, this is the time to do the installation. 43 00:03:09,760 --> 00:03:10,150 All right. 44 00:03:10,150 --> 00:03:11,360 You might get a message. 45 00:03:11,360 --> 00:03:14,350 Say, do you want to allow this app to make changes to your device? 46 00:03:14,350 --> 00:03:14,620 Click. 47 00:03:14,620 --> 00:03:15,190 Yes. 48 00:03:18,040 --> 00:03:18,340 All right. 49 00:03:18,340 --> 00:03:22,420 Welcome to Oracle VM VirtualBox the version set up wizard. 50 00:03:22,420 --> 00:03:24,160 Just simply follow the wizard. 51 00:03:27,370 --> 00:03:28,820 Leave everything default. 52 00:03:28,840 --> 00:03:29,800 Click next. 53 00:03:30,790 --> 00:03:33,040 Choose from the following options. 54 00:03:33,040 --> 00:03:34,420 Create a start menu. 55 00:03:34,420 --> 00:03:36,120 Create a shortcut on desktop. 56 00:03:36,130 --> 00:03:36,810 Create a shortcut. 57 00:03:36,850 --> 00:03:38,560 Quick launch bar. 58 00:03:39,310 --> 00:03:44,140 Leave that out and register file association or leave everything by default. 59 00:03:44,140 --> 00:03:44,920 Click next. 60 00:03:45,960 --> 00:03:52,170 Proceed with installation warning network interface installing Oracle VM VirtualBox networking feature 61 00:03:52,170 --> 00:03:56,430 will reset your network connection and temporarily disconnect you from the network. 62 00:03:56,430 --> 00:04:03,030 So if you are running any other important or production critical application on your machine, this 63 00:04:03,030 --> 00:04:10,140 machine where we installing, then I would say stop them first because the network adapter will reset 64 00:04:10,140 --> 00:04:14,100 and it will give you a brief interruption on the network. 65 00:04:14,400 --> 00:04:18,060 If not, if it's just a lab or home computer, then simply click. 66 00:04:18,060 --> 00:04:18,600 Yes. 67 00:04:19,520 --> 00:04:20,450 And install. 68 00:04:24,360 --> 00:04:30,240 All right, Oracle VM VirtualBox version installation is complete Click Finish Button to Exit a setup 69 00:04:30,240 --> 00:04:33,330 and also a check mark is already there by default. 70 00:04:33,330 --> 00:04:35,460 If you want to start a menu, click finish. 71 00:04:37,990 --> 00:04:38,380 All right. 72 00:04:38,380 --> 00:04:45,610 So as soon as the application or the software starts up, this is the window box that you will see. 73 00:04:45,610 --> 00:04:48,280 Let me minimize the Firefox in the background. 74 00:04:48,760 --> 00:04:54,250 And right here you will see this is the Oracle VM VirtualBox manager. 75 00:04:54,550 --> 00:04:59,260 This is where you will go in and create virtual machines. 76 00:04:59,260 --> 00:05:06,130 And once we create the virtual machine will install the Linux operating system, install Ansible and 77 00:05:06,130 --> 00:05:07,540 we'll go from there. 78 00:05:09,150 --> 00:05:13,710 Previously, we have downloaded and installed Oracle VirtualBox. 79 00:05:13,740 --> 00:05:19,920 Now it's time to go in and create a virtual machine and install Linux operating system. 80 00:05:20,340 --> 00:05:26,310 So step by step, the very first thing we did, we identified our computer where we will be installing 81 00:05:26,310 --> 00:05:27,690 the virtualization layer. 82 00:05:27,870 --> 00:05:33,840 So second thing we did downloaded and installed the virtualization, which we picked the Oracle virtual 83 00:05:33,840 --> 00:05:34,500 box. 84 00:05:34,920 --> 00:05:42,570 Now the third thing is we'll go and open up our virtual box and create a virtual machine. 85 00:05:43,170 --> 00:05:48,060 Then the last step is to install Linux operating system. 86 00:05:48,540 --> 00:05:55,860 Now in this course, I'm going to install Linux Santas version eight operating system. 87 00:05:55,980 --> 00:05:58,770 Of course, you could go with any version of your choice. 88 00:05:58,770 --> 00:06:04,200 You could either go with Red Hat six, seven, eight, or you could go with Santos. 89 00:06:04,200 --> 00:06:05,520 You could go with a one, two. 90 00:06:05,520 --> 00:06:07,740 All the instructions have been provided. 91 00:06:07,740 --> 00:06:13,020 But for this course, we will go with Santos version eight. 92 00:06:13,590 --> 00:06:18,270 All right, so first thing is to create a virtual machine. 93 00:06:18,660 --> 00:06:24,270 All right, so you could start your Oracle virtual box by typing right here or simply double click the 94 00:06:24,270 --> 00:06:25,430 icon on your desktop. 95 00:06:25,440 --> 00:06:27,630 Let's start it from the desktop. 96 00:06:27,900 --> 00:06:30,830 Click new to create a new virtual machine. 97 00:06:30,840 --> 00:06:35,220 Let's pick the name and symbol control node. 98 00:06:36,810 --> 00:06:42,780 This is the name of the virtual machine, not the name of your operating system. 99 00:06:43,290 --> 00:06:46,770 All right, so pick the type, Linux and the version. 100 00:06:46,770 --> 00:06:53,070 Let's pick Linux 2.6 64 bit and click next. 101 00:06:53,520 --> 00:06:57,450 This is the size of your memory, which is one gig by default. 102 00:06:57,450 --> 00:07:00,120 Let's change it to 22048. 103 00:07:01,100 --> 00:07:04,850 Next, this is going to ask you about your disks. 104 00:07:05,540 --> 00:07:07,700 Create a virtual disk now. 105 00:07:08,750 --> 00:07:15,500 The file type, leave default, leave the default and change the disk size to 20 gig. 106 00:07:15,680 --> 00:07:23,450 If you are planning on adding a lot of scripts or a lot of huge files onto your ASP.NET control node, 107 00:07:23,450 --> 00:07:26,540 then change the size according to your requirement. 108 00:07:27,020 --> 00:07:28,070 Click Create. 109 00:07:29,510 --> 00:07:32,480 Now your virtual machine has been created. 110 00:07:32,990 --> 00:07:34,370 I want you to go to setting. 111 00:07:35,130 --> 00:07:41,310 And you will see in general, it has a name and a type of operating system that will be hosting on this 112 00:07:41,310 --> 00:07:42,000 computer. 113 00:07:42,090 --> 00:07:44,430 Go to system if you want to change the memory. 114 00:07:44,430 --> 00:07:45,000 You could change it. 115 00:07:45,000 --> 00:07:50,520 Now, if you want to change the processor, which is given as one CPU by default, if you want to change 116 00:07:50,520 --> 00:07:57,390 it, change it now go to storage and click on Aspect Control Node DVD and you will see this, the 20 117 00:07:57,390 --> 00:08:00,330 gig that we have picked for our disk space. 118 00:08:00,480 --> 00:08:05,220 I want you to go to a network and change that task to from that to bridge adapter. 119 00:08:05,220 --> 00:08:09,450 This will allow you to connect to the Internet once you have the operating system installed. 120 00:08:09,870 --> 00:08:11,760 That's perfectly okay. 121 00:08:12,120 --> 00:08:17,430 Now before you power it on, it is going to ask you where the operating system is. 122 00:08:18,460 --> 00:08:21,840 So we have to download the Santos ISO image. 123 00:08:21,840 --> 00:08:25,560 For that we'll go to our Firefox. 124 00:08:27,900 --> 00:08:29,390 That's a browser that I'm using. 125 00:08:29,400 --> 00:08:33,120 Go to Google and type it in download Santos. 126 00:08:33,970 --> 00:08:36,070 Go to the Santos dot org. 127 00:08:36,870 --> 00:08:41,090 Click on Santos stream because Santos Lennox will give you seven. 128 00:08:41,100 --> 00:08:43,920 If you wanted to go with seven, that's still fine. 129 00:08:43,980 --> 00:08:51,210 Click on this one on seven and pick the first one, the first mirror that will allow you to download 130 00:08:51,210 --> 00:08:52,100 the image. 131 00:08:52,110 --> 00:09:00,000 Now we are going with eight Santos stream version eight and x86 underscore 64 bid. 132 00:09:00,000 --> 00:09:10,470 Click on it and pick the first one and then pick the one that says x 8660 for the version DVD one ISO 133 00:09:10,470 --> 00:09:13,800 and you will notice it has the the highest size. 134 00:09:15,260 --> 00:09:18,170 Pick this one and it will start downloading. 135 00:09:18,530 --> 00:09:24,320 I have already downloaded this ISO image to save some time, so I'm going to cancel it. 136 00:09:24,410 --> 00:09:29,060 If you have not downloaded, so please wait until the download completes. 137 00:09:29,450 --> 00:09:29,780 All right. 138 00:09:29,780 --> 00:09:31,040 So a download is completed. 139 00:09:31,040 --> 00:09:33,110 I have it downloaded on my desktop. 140 00:09:33,110 --> 00:09:33,380 Right? 141 00:09:33,380 --> 00:09:36,230 Here is the download of ISO image. 142 00:09:36,380 --> 00:09:38,300 Now go ahead and click on START. 143 00:09:39,020 --> 00:09:40,700 We'll start the virtual machine. 144 00:09:43,660 --> 00:09:49,180 Once it starts is going to ask you where is the ISO image of the operating system that you want to install? 145 00:09:49,510 --> 00:09:51,610 So we'll pick this folder. 146 00:09:52,560 --> 00:09:53,520 Add. 147 00:09:54,300 --> 00:09:57,180 Where is our ISO image? 148 00:09:57,210 --> 00:10:00,810 It is on our desktop and right here is the ISO image. 149 00:10:00,810 --> 00:10:05,010 Click open and click choose and then start. 150 00:10:09,540 --> 00:10:15,150 This page is by default selected tests media and install center stream. 151 00:10:16,620 --> 00:10:22,290 Move your arrow on the keyboard and select the first one which is installed center stream eight and 152 00:10:22,530 --> 00:10:23,070 enter. 153 00:10:33,720 --> 00:10:34,320 All right. 154 00:10:34,320 --> 00:10:37,830 You're going to get the welcome to Santos installation. 155 00:10:38,160 --> 00:10:39,840 Pick your language. 156 00:10:39,840 --> 00:10:40,800 The region. 157 00:10:40,800 --> 00:10:43,860 For me, it's United States and then click continue. 158 00:10:46,980 --> 00:10:52,350 All right, please complete items, Mark, with this icon before continuing to the next step. 159 00:10:52,380 --> 00:10:59,730 Keyword English Lever Default Installation Source Local media which we have picked from our desktop 160 00:11:00,060 --> 00:11:02,220 installation destination. 161 00:11:02,370 --> 00:11:04,170 So this is the 20 gig. 162 00:11:04,170 --> 00:11:05,180 It's already checked. 163 00:11:05,190 --> 00:11:06,150 Click done. 164 00:11:08,450 --> 00:11:11,330 It's checking storage, automatic partitions. 165 00:11:11,330 --> 00:11:15,200 We are now going to do the custom partition. 166 00:11:15,200 --> 00:11:21,890 We're just picking the automatic partition language separately with default software selection server. 167 00:11:21,890 --> 00:11:27,110 With Google, you can leave that default unless you want to add more packages. 168 00:11:27,680 --> 00:11:28,910 Simply click done. 169 00:11:29,600 --> 00:11:33,620 K dump is enabled by default leave as is time and date. 170 00:11:33,860 --> 00:11:36,200 For me, it's America's New York. 171 00:11:36,200 --> 00:11:43,130 You could change it according to your time and region, network and hostname right here. 172 00:11:43,130 --> 00:11:45,140 Our network is turned on. 173 00:11:45,470 --> 00:11:52,580 We'll move this here and change the hostname to ansible control node. 174 00:11:53,950 --> 00:12:02,080 Or we could make it shorter by just saying control node, this is going to be the hostname of this operating 175 00:12:02,080 --> 00:12:02,620 system. 176 00:12:02,620 --> 00:12:07,360 Once you click on Apply, it will say current hostname is control node. 177 00:12:07,930 --> 00:12:12,580 The network is connected on already beautiful click done. 178 00:12:14,600 --> 00:12:15,950 Now that one is done. 179 00:12:15,950 --> 00:12:19,300 Security policy, you don't have to make any changes. 180 00:12:19,310 --> 00:12:20,150 Rude password. 181 00:12:20,150 --> 00:12:21,290 Pick a password. 182 00:12:27,500 --> 00:12:27,780 Okay. 183 00:12:27,800 --> 00:12:29,750 It's saying the password fails. 184 00:12:29,870 --> 00:12:31,300 The dictionary check. 185 00:12:31,310 --> 00:12:35,530 It is based on a dictionary word which you will have to press done twice to confirm. 186 00:12:35,540 --> 00:12:37,760 So if you're picking a weak password, that is fine. 187 00:12:37,760 --> 00:12:40,580 But you have to press a done twice. 188 00:12:40,580 --> 00:12:43,640 But of course, I would recommend that you pick a stronger password. 189 00:12:44,180 --> 00:12:44,540 All right. 190 00:12:44,540 --> 00:12:46,850 Since this is again, it's lab. 191 00:12:46,850 --> 00:12:48,140 That is fine. 192 00:12:48,380 --> 00:12:51,440 The next one right here is this user creation. 193 00:12:51,440 --> 00:12:53,780 If you want to create a user, you can. 194 00:12:54,410 --> 00:12:56,630 I'm going to create a user for myself. 195 00:12:57,080 --> 00:12:58,460 Requires a password. 196 00:12:58,460 --> 00:13:00,380 Pick a password for that user. 197 00:13:03,880 --> 00:13:05,140 Against a weak password. 198 00:13:05,140 --> 00:13:05,860 That is fine. 199 00:13:05,860 --> 00:13:07,780 So I'm going to click done twice. 200 00:13:07,870 --> 00:13:08,350 All right. 201 00:13:08,350 --> 00:13:12,880 All the information that is needed has been provided. 202 00:13:13,270 --> 00:13:13,780 Perfect. 203 00:13:13,810 --> 00:13:16,120 Now click on Begin installation. 204 00:13:17,310 --> 00:13:26,640 Now this is going to take anywhere from 5 minutes to 20 or 25 minutes, depending on the speed of your 205 00:13:26,640 --> 00:13:31,080 computer where you are running this virtual software. 206 00:13:31,320 --> 00:13:31,620 All right. 207 00:13:31,620 --> 00:13:34,440 I'm going to fast forward from this point. 208 00:14:12,430 --> 00:14:12,820 All right. 209 00:14:12,820 --> 00:14:14,440 So installation has been completed. 210 00:14:14,450 --> 00:14:16,330 Go ahead and click on Reboot System. 211 00:14:22,830 --> 00:14:24,390 License information. 212 00:14:25,460 --> 00:14:25,790 Click. 213 00:14:25,790 --> 00:14:27,530 I accept the license agreement. 214 00:14:28,450 --> 00:14:29,050 Done. 215 00:14:30,330 --> 00:14:31,560 Finish configuration. 216 00:14:37,390 --> 00:14:37,990 All right. 217 00:14:37,990 --> 00:14:39,580 So now you got the login screen. 218 00:14:39,610 --> 00:14:41,050 Go ahead and click on your name. 219 00:14:41,050 --> 00:14:46,840 Or you could click on not listed and type it in route if you want to log in as route head enter. 220 00:14:50,760 --> 00:14:51,180 Okay. 221 00:14:51,180 --> 00:14:52,980 So now we have a desktop. 222 00:14:53,700 --> 00:14:55,590 Click on activities. 223 00:14:57,250 --> 00:14:59,550 And click on the terminal. 224 00:14:59,560 --> 00:15:07,720 This is the terminal that we will be using to execute Ansible scripts or Ansible commands. 225 00:15:07,720 --> 00:15:10,660 But for that, first we have to install Ansible. 226 00:15:10,690 --> 00:15:17,500 So anyway, for this video, we have created a virtual machine and install a Linux operating system 227 00:15:17,770 --> 00:15:19,540 on our virtual machine. 228 00:15:20,020 --> 00:15:24,250 And of course, the next step would be to install the ANSIBLE software. 229 00:15:25,090 --> 00:15:26,500 I'll see you in the next lecture. 230 00:15:27,100 --> 00:15:27,920 Hey, folks. 231 00:15:27,940 --> 00:15:31,010 So this is the last step of our lab setup. 232 00:15:31,030 --> 00:15:33,790 We have downloaded and installed Oracle VirtualBox. 233 00:15:33,790 --> 00:15:36,970 Then we have downloaded and installed Linux operating system. 234 00:15:37,000 --> 00:15:43,510 Now it's time to install Ansible software or Ansible engine on our Linux operating system. 235 00:15:43,870 --> 00:15:44,290 All right. 236 00:15:44,290 --> 00:15:50,650 So one important thing before you go ahead and install Ansible is that I want you to take a VM snapshot. 237 00:15:50,740 --> 00:15:58,010 This will allow you to come back or revert back to the VM original state when you took the snapshot. 238 00:15:58,030 --> 00:16:04,930 In case you do make a mistake or do some kind of misconfiguration on your Linux operating system. 239 00:16:05,170 --> 00:16:08,230 All right, so go to our Oracle VirtualBox. 240 00:16:10,710 --> 00:16:11,520 Right here. 241 00:16:11,520 --> 00:16:14,160 Your Ansible control node is powered off. 242 00:16:14,340 --> 00:16:15,810 You have this menu. 243 00:16:15,810 --> 00:16:21,270 If you don't have this menu, simply click on these three dots, click on Snapshot and then click Take. 244 00:16:21,570 --> 00:16:22,590 Give it a name. 245 00:16:22,830 --> 00:16:30,150 I'm going to give Linux install point which will remind me this is the time when I've completed the 246 00:16:30,150 --> 00:16:31,320 Linux installation click. 247 00:16:31,320 --> 00:16:31,880 Okay. 248 00:16:32,580 --> 00:16:34,860 All right, it's done and I'll go ahead and click Start. 249 00:16:43,740 --> 00:16:44,130 All right. 250 00:16:44,130 --> 00:16:50,310 While this a virtual machine or this Linux operating system is starting it up, let's go to the next 251 00:16:50,310 --> 00:16:55,020 step, which is Ansible installation guide can be found on this link. 252 00:16:55,020 --> 00:17:00,960 So I want you to write down this a link because this will give you a lot of good information of step 253 00:17:00,960 --> 00:17:04,470 by step instruction on installing Ansible. 254 00:17:04,470 --> 00:17:10,920 If you are installing a different version than sent us eight, which I am going to be installing it 255 00:17:10,920 --> 00:17:11,520 on. 256 00:17:11,820 --> 00:17:20,670 So if I go to my Firefox, which I have already opened and I am already on that page, on this page 257 00:17:20,670 --> 00:17:27,720 you will notice here's a list of all the instructions of installing Ansible on different operating system. 258 00:17:27,950 --> 00:17:30,690 Right here is RHEL Center or Fedora. 259 00:17:30,720 --> 00:17:37,020 These are the instructions which we will follow to install it on CentOS. 260 00:17:37,020 --> 00:17:43,050 If you are doing it on a button to follow this instruction for Dave and follow this instruction and 261 00:17:43,050 --> 00:17:44,310 there are other. 262 00:17:45,450 --> 00:17:52,530 Unix or Linux type operating system, which you could follow the instruction and install Ansible. 263 00:17:53,250 --> 00:17:53,790 All right. 264 00:17:53,910 --> 00:17:58,590 Going back to our slide and going back to our virtual machine. 265 00:17:58,770 --> 00:18:01,230 Our virtual machine is up. 266 00:18:02,710 --> 00:18:05,110 And let's log in as our self. 267 00:18:11,340 --> 00:18:11,550 Okay. 268 00:18:11,640 --> 00:18:15,240 So if you notice, this is a smaller windows of virtual box. 269 00:18:15,240 --> 00:18:20,160 If you want to make this window bigger, you could right click on your desktop, go to display setting. 270 00:18:22,730 --> 00:18:25,100 And right here where you see resolution. 271 00:18:25,960 --> 00:18:26,710 Click on it. 272 00:18:27,880 --> 00:18:33,530 Change the resolution to whichever resolution according to your requirement. 273 00:18:33,550 --> 00:18:35,950 I'm going to leave it as is for now. 274 00:18:37,060 --> 00:18:37,360 Okay. 275 00:18:37,390 --> 00:18:42,280 This is a welcome message that you're going to get every time you start it up. 276 00:18:42,280 --> 00:18:45,340 You could actually quit out of it by clicking here and quit. 277 00:18:46,090 --> 00:18:46,420 All right. 278 00:18:46,420 --> 00:18:51,130 So going back to display will change whatever you have applied the setting and it will make it bigger. 279 00:18:51,250 --> 00:18:54,580 Right click on activities, go to the terminal. 280 00:18:54,850 --> 00:18:56,580 So we have the terminal open. 281 00:18:56,590 --> 00:19:02,110 The next step is for Santas of Red Hat Fedora Version seven. 282 00:19:02,110 --> 00:19:05,080 You will have to run the command command jam, DNF. 283 00:19:05,080 --> 00:19:09,730 DNF is going to be replacing Yum eventually. 284 00:19:09,970 --> 00:19:16,780 So for now you could use either or so install EPL Daschle's and then install Ansible. 285 00:19:16,780 --> 00:19:24,190 Now for Santas eight or any of the version eight, this is these are the instructions that we will follow 286 00:19:24,190 --> 00:19:30,100 going back to our Linux machine to follow these instructions and install any package we have to run 287 00:19:30,100 --> 00:19:33,820 the command as root, so become root. 288 00:19:35,340 --> 00:19:37,920 All right, now go ahead and run the command. 289 00:19:37,920 --> 00:19:38,550 Yum. 290 00:19:38,550 --> 00:19:43,080 Install epi l release. 291 00:19:50,590 --> 00:19:51,310 All right. 292 00:19:51,310 --> 00:19:55,810 It's asking you to confirm a type of lie and confirm again. 293 00:19:55,990 --> 00:19:58,720 And the package has been installed. 294 00:19:58,750 --> 00:19:59,050 All right. 295 00:19:59,050 --> 00:20:01,690 The next thing is you have installed Python. 296 00:20:02,140 --> 00:20:09,910 Now with Santos, eight or newer version of Red Hat or Linux, the Python package should already be 297 00:20:09,910 --> 00:20:17,500 installed or installed out of the box to confirm that you can run the command rpm desk and grep for 298 00:20:17,860 --> 00:20:24,790 python and you'll notice they these are all the list of python packages that's already been installed. 299 00:20:24,850 --> 00:20:25,490 Great. 300 00:20:25,510 --> 00:20:28,060 Now the next step is to install Ansible. 301 00:20:28,300 --> 00:20:32,710 So that's clear the screen and type it in Yum or DNF. 302 00:20:32,710 --> 00:20:35,290 So in this this time we'll run DNF. 303 00:20:36,640 --> 00:20:41,230 Install Ansible, this is the Ansible engine or software itself. 304 00:20:41,320 --> 00:20:49,330 And then next package that we will install in addition to Ansible is the Ansible documentation and header. 305 00:20:57,520 --> 00:21:02,970 All right, Ansible and Ansible, dock package is completed to verify it. 306 00:21:02,980 --> 00:21:06,460 You grow in the command rpm queue and grep for ansible. 307 00:21:08,170 --> 00:21:08,920 All right, it's there. 308 00:21:08,930 --> 00:21:10,330 Ansible Core and Ansible Dock. 309 00:21:10,360 --> 00:21:18,280 The next thing is, if you are using CentOS Ace eight and the above steps don't work, then follow these 310 00:21:18,280 --> 00:21:18,670 steps. 311 00:21:18,670 --> 00:21:21,520 So usually version eight will come with Python three. 312 00:21:22,000 --> 00:21:24,310 If it's not, then you follow these steps. 313 00:21:24,370 --> 00:21:24,760 Yum. 314 00:21:24,760 --> 00:21:32,740 Install Python three and then use python package installer to install ansible, which is pip three. 315 00:21:32,740 --> 00:21:34,000 Install Ansible. 316 00:21:34,030 --> 00:21:35,080 Dash Dock. 317 00:21:35,380 --> 00:21:35,890 All right. 318 00:21:35,890 --> 00:21:42,130 Moving on, if you're using RedHat eight and above steps that you followed did not work, then you have 319 00:21:42,130 --> 00:21:45,430 to enable the Ansible engine repository to install Ansible. 320 00:21:46,210 --> 00:21:52,930 And for that you will run the command subscription dash manager repos enabled ansible repositories and 321 00:21:52,930 --> 00:21:54,280 then install Ansible. 322 00:21:54,730 --> 00:21:55,090 All right. 323 00:21:55,090 --> 00:22:01,480 So now after Ansible has been successfully installed on your Linux machine, let's confirm. 324 00:22:02,170 --> 00:22:04,240 So here is our Linux machine. 325 00:22:04,240 --> 00:22:10,720 Let's clear the screen and you will run the command ansible dash dash version. 326 00:22:11,830 --> 00:22:17,740 And it will give you the version of the astral engine or Ansible software that has been installed. 327 00:22:17,920 --> 00:22:18,430 All right. 328 00:22:18,430 --> 00:22:19,150 It is there. 329 00:22:19,150 --> 00:22:20,330 We confirm that. 330 00:22:20,350 --> 00:22:25,450 Now run ansible command module using Peng. 331 00:22:25,480 --> 00:22:27,040 So it will be Ansible. 332 00:22:27,310 --> 00:22:28,570 Local host. 333 00:22:29,390 --> 00:22:41,510 Dash M Peng This command is going to run as the module called Peng against the local host so simply 334 00:22:41,510 --> 00:22:43,200 as if you are doing ping. 335 00:22:43,250 --> 00:22:47,360 Local Host And it is pinging and confirming it could ping. 336 00:22:47,360 --> 00:22:49,010 The local host just like that. 337 00:22:49,040 --> 00:22:52,310 We have a ping module within Ansible, by the way. 338 00:22:52,310 --> 00:22:56,420 There are many, many, many more modules that we will cover later on. 339 00:22:56,420 --> 00:23:01,970 But for now this is what I wanted to confirm, to see if Ansible has been installed. 340 00:23:02,270 --> 00:23:04,610 All right, let's check the Ansible config files. 341 00:23:05,060 --> 00:23:07,420 So let's clear the screen again. 342 00:23:07,430 --> 00:23:15,740 The Ansible files, all of them are located in and at see Ansible and you do listing of the files and 343 00:23:15,740 --> 00:23:16,550 directories. 344 00:23:16,550 --> 00:23:19,890 You'll see there are roles directory which we will cover later on. 345 00:23:19,910 --> 00:23:21,770 Then there is a host file. 346 00:23:21,770 --> 00:23:26,480 That's where all the remote clients inventory resides. 347 00:23:26,480 --> 00:23:33,770 So we every time we run an Ansible command, it comes to this file to see where the list of all the 348 00:23:33,770 --> 00:23:37,790 hosts or remote clients that it has to execute the commands on. 349 00:23:37,910 --> 00:23:39,800 And the last one is Ansible CFG. 350 00:23:39,890 --> 00:23:45,410 If you need to make any configuration change on Ansible, you could do it on this configuration files. 351 00:23:45,980 --> 00:23:46,490 All right. 352 00:23:46,490 --> 00:23:53,330 The last thing, please note, if you have Linux enabled on remote nodes, you will also want to install 353 00:23:53,330 --> 00:23:58,910 lib AC Linux dash python on them before using any copy file template related function ansible. 354 00:23:59,300 --> 00:24:03,050 Now you do not have to go log into each and every one of them. 355 00:24:03,260 --> 00:24:09,320 What you could do is you can use the Yum module or DNF module in Ansible to install this package on 356 00:24:09,320 --> 00:24:11,720 remote hosts that do not have it. 357 00:24:12,410 --> 00:24:19,970 All right, so we will disable the links on our remote client because we are using all that setup in 358 00:24:19,970 --> 00:24:20,900 our lab environment. 359 00:24:20,900 --> 00:24:27,740 But if you're doing it in production, then please make sure you install this lib as Linux dash python 360 00:24:27,950 --> 00:24:28,820 package. 361 00:24:29,600 --> 00:24:29,870 All right. 362 00:24:29,870 --> 00:24:35,000 So now this completes our entire lab setup and configuration. 363 00:24:35,000 --> 00:24:42,770 Now it's time to really get our hands dirty and run our ansible automation scripts against our local 364 00:24:42,770 --> 00:24:44,510 hosts and remote clients.