WEBVTT

1
00:00.000 --> 00:04.840
So friends, now that we have access to Red Hat Enterprise Linux, as well as our

2
00:04.840 --> 00:05.560
virtualization

3
00:05.560 --> 00:10.200
software, what we want to do is to create three different virtual machines.

4
00:10.200 --> 00:14.000
Now in the case here, we're going to have one particular virtual machine which

5
00:14.000 --> 00:14.400
is going

6
00:14.400 --> 00:17.360
to act as our Ansible Control node.

7
00:17.360 --> 00:21.040
Pretty much this is going to be the machine that is responsible for managing

8
00:21.040 --> 00:21.600
all other

9
00:21.600 --> 00:22.600
machines.

10
00:22.600 --> 00:26.200
Don't worry about the terminology too much, we'll talk about an in an upcoming

11
00:26.200 --> 00:26.720
video.

12
00:26.720 --> 00:30.200
So this is going to be the machine that is responsible for doing all the
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

12
00:26.720 --> 00:30.200
So this is going to be the machine that is responsible for doing all the

13
00:30.200 --> 00:30.960
automation.

14
00:30.960 --> 00:34.440
And quite simply Ansible is just software that we're going to install on a Red

15
00:34.440 --> 00:35.200
Hat Enterprise

16
00:35.200 --> 00:36.200
Linux machine.

17
00:36.200 --> 00:40.750
So once again, the first VM is going to be a Rail based and quite honestly, the

18
00:40.750 --> 00:41.120
next

19
00:41.120 --> 00:46.120
two machines, machines two and three are also going to be Rail based.

20
00:46.120 --> 00:50.180
Now just a point of note with respect to using Ansible, the machines that Ans

21
00:50.180 --> 00:50.920
ible manage

22
00:50.920 --> 00:53.680
do not all have to be Red Hat Enterprise Linux.

23
00:53.680 --> 00:58.170
They could for example be Ubuntu, they could be Rocky Linux, whatever it may be

24
00:58.170 --> 00:58.480
.

25
00:58.480 --> 01:02.560
The reason why we're using two more additions of Rail has quite simply on the
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

25
00:58.480 --> 01:02.560
The reason why we're using two more additions of Rail has quite simply on the

26
01:02.560 --> 01:03.560
examination,

27
01:03.560 --> 01:06.640
you can expect to be managing and dealing with Rail systems.

28
01:06.640 --> 01:11.400
So it just makes sense to have an entire lab environment all working with Rail.

29
01:11.400 --> 01:14.170
So like I say, we'll have three different Rail machines, the fourth Rail

30
01:14.170 --> 01:14.640
machine we

31
01:14.640 --> 01:16.120
will install Ansible.

32
01:16.120 --> 01:19.930
In this case here, I'm going to recommend that you install a graphical user

33
01:19.930 --> 01:20.560
interface

34
01:20.560 --> 01:22.000
based Rail machine.

35
01:22.000 --> 01:23.360
This makes things easier to operate.

36
01:23.360 --> 01:27.030
Now with respect to the machines that are going to be managed by Ansible, if

37
01:27.030 --> 01:27.520
you happen

38
01:27.520 --> 01:31.380
to be struggling for resources, then you could get away with just using a
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

38
01:27.520 --> 01:31.380
to be struggling for resources, then you could get away with just using a

39
01:31.380 --> 01:33.040
minimal install.

40
01:33.040 --> 01:36.040
This pretty much means that you're just going to get a basic command line

41
01:36.040 --> 01:36.720
interface, no

42
01:36.720 --> 01:39.400
nice graphics, no web browser, that type of thing.

43
01:39.400 --> 01:42.900
But honestly, it's going to be more than enough to practice working with Ans

44
01:42.900 --> 01:43.320
ible.

45
01:43.320 --> 01:47.630
Now in my case, the two other additional machines right here, I am also going

46
01:47.630 --> 01:48.520
to install them

47
01:48.520 --> 01:50.080
with a graphical user interface.

48
01:50.080 --> 01:53.730
The reason why I'm doing that is because I have plenty of resources on my

49
01:53.730 --> 01:55.160
personal computer

50
01:55.160 --> 01:58.680
and for the purposes of recording, visually for you at home watching, it just

51
01:58.680 --> 01:59.080
makes it

52
01:59.080 --> 02:01.920
nice that if you happen to be looking at a graphical user interface.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

52
01:59.080 --> 02:01.920
nice that if you happen to be looking at a graphical user interface.

53
02:01.920 --> 02:05.640
But like I say, if you're struggling for resources by all means you can do that

54
02:05.640 --> 02:06.200
minimal

55
02:06.200 --> 02:07.480
install for those two.

56
02:07.480 --> 02:11.240
So let's first walk through the creation of our first machine here, which is

57
02:11.240 --> 02:11.680
going to

58
02:11.680 --> 02:13.960
have Ansible installed on it.

59
02:13.960 --> 02:16.160
So I will pull up my VMware.

60
02:16.160 --> 02:19.440
Depending if you happen to have a Windows based installation, the interface

61
02:19.440 --> 02:19.960
might look

62
02:19.960 --> 02:23.550
a little bit different, but ultimately the configurations are going to be the

63
02:23.550 --> 02:24.000
same.

64
02:24.000 --> 02:26.840
The first thing we want to do is to create a new virtual machine.

65
02:26.840 --> 02:29.120
So I will go to file here and then choose new.

66
02:29.120 --> 02:31.960
In the case here, I'm going to install from a disk or image.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

66
02:29.120 --> 02:31.960
In the case here, I'm going to install from a disk or image.

67
02:31.960 --> 02:35.280
This is going to be the real image that we just downloaded in the previous

68
02:35.280 --> 02:35.800
video.

69
02:35.800 --> 02:36.800
Let's click continue.

70
02:36.800 --> 02:41.240
So in my case here, I will just choose the real image and then select continue.

71
02:41.240 --> 02:45.760
So right now we have some default settings as it transpires by default, I'm

72
02:45.760 --> 02:46.680
using 2Gig

73
02:46.680 --> 02:51.560
of RAM and 20Gig of hardware space that is going to be plenty fine for me.

74
02:51.560 --> 02:53.760
So if you so wish you can just choose finish.

75
02:53.760 --> 02:57.180
But if for example, if you happen to have more resource to despair, no harm in

76
02:57.180 --> 02:57.760
choosing

77
02:57.760 --> 03:01.250
customized settings, let's just give the device a name, which is called this
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

77
02:57.760 --> 03:01.250
customized settings, let's just give the device a name, which is called this

78
03:01.250 --> 03:02.320
rail control

79
03:02.320 --> 03:05.640
click save and then you can go into process as a memory.

80
03:05.640 --> 03:08.400
If you so wish you can crank the memory up to whatever you need.

81
03:08.400 --> 03:11.890
Allocate more processes that type of thing if you so wish but the default

82
03:11.890 --> 03:13.040
should suffice.

83
03:13.040 --> 03:16.470
So with that now done, I will just click play and then I'm just going to arrow

84
03:16.470 --> 03:17.200
up to actually

85
03:17.200 --> 03:20.840
install red hat enterprise Linux and just hit enter.

86
03:20.840 --> 03:22.760
Now just give it some time to boot up and load.

87
03:22.760 --> 03:25.950
Now the very first time we're going to have to do is to choose your own

88
03:25.950 --> 03:26.720
language.

89
03:26.720 --> 03:30.850
In my case here, I'm going to be selecting English and English United Kingdom,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

89
03:26.720 --> 03:30.850
In my case here, I'm going to be selecting English and English United Kingdom,

90
03:30.850 --> 03:31.320
choose

91
03:31.320 --> 03:34.360
whatever is appropriate for you and then choose continue.

92
03:34.360 --> 03:37.800
Now the first thing I'm going to do is to choose the installation destination.

93
03:37.800 --> 03:41.640
Let's click this link here and then I'm going to select this 20 gig hard drive

94
03:41.640 --> 03:42.600
that I have

95
03:42.600 --> 03:44.960
cut out for this particular virtual machine.

96
03:44.960 --> 03:48.080
Once I have that highlighted, I'm going to click again to make sure I see a

97
03:48.080 --> 03:48.440
tick.

98
03:48.440 --> 03:49.440
There we go.

99
03:49.440 --> 03:52.900
And in the case here, I'm not going to worry about data encryption or storage

100
03:52.900 --> 03:53.760
configuration.

101
03:53.760 --> 03:56.800
I will leave that automatic and leave the others unchecked.

102
03:56.800 --> 03:58.440
Let me now just select done.

103
03:58.440 --> 04:01.480
So with that now done, it says automatic partition and selected.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

103
03:58.440 --> 04:01.480
So with that now done, it says automatic partition and selected.

104
04:01.480 --> 04:02.480
That's a good sign.

105
04:02.480 --> 04:05.720
The next one I'm going to go to is network and host name.

106
04:05.720 --> 04:08.670
So all I want to do is to make sure this ethernet connection is toggled on

107
04:08.670 --> 04:09.200
right now.

108
04:09.200 --> 04:10.200
It's on.

109
04:10.200 --> 04:11.560
If it was off, it would be gray.

110
04:11.560 --> 04:14.280
In this case here, I want to make sure it is blue.

111
04:14.280 --> 04:16.600
Once that is done, I will now select done.

112
04:16.600 --> 04:19.200
Then I'm going to go to software selection.

113
04:19.200 --> 04:22.360
In the case here, this is going to be my Ansible control mode.

114
04:22.360 --> 04:26.450
I'm going to recommend you select server with GUI to get that graphical user

115
04:26.450 --> 04:27.280
interface.

116
04:27.280 --> 04:30.200
With respect to the other installations, when you're making machine two and
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

116
04:27.280 --> 04:30.200
With respect to the other installations, when you're making machine two and

117
04:30.200 --> 04:30.760
three, if you

118
04:30.760 --> 04:33.200
so wish, feel free to choose minimal install.

119
04:33.200 --> 04:35.200
I would select the graphical installation.

120
04:35.200 --> 04:36.360
So let's choose done.

121
04:36.360 --> 04:39.720
The next thing I'm going to do is to go down to root passwords.

122
04:39.720 --> 04:44.290
Let me just give a very bad password or password one, which is absolutely not

123
04:44.290 --> 04:45.040
secure.

124
04:45.040 --> 04:47.880
But nevertheless, just for lab and environments, let's just keep it simple.

125
04:47.880 --> 04:51.520
So again, I will say password one and then I will select done.

126
04:51.520 --> 04:52.520
Okay.

127
04:52.520 --> 04:56.330
So now we see the root password is set and then I will go down to user creation

128
04:56.330 --> 04:56.600
.

129
04:56.600 --> 04:59.000
Let's click this here and let's just give this a name.

130
04:59.000 --> 05:02.040
I'll just call this nugget user and I will also make this user and
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

130
04:59.000 --> 05:02.040
I'll just call this nugget user and I will also make this user and

131
05:02.040 --> 05:03.160
administrative.

132
05:03.160 --> 05:07.480
So we can use the pseudo commands and again, just to keep things all simple, I

133
05:07.480 --> 05:07.840
will just

134
05:07.840 --> 05:09.560
choose the password or password one.

135
05:09.560 --> 05:12.120
Like I say, never ever do this in a real live environment.

136
05:12.120 --> 05:15.000
That's just because it's a lab and any virtual machine.

137
05:15.000 --> 05:16.360
In the case here, though, I will click done.

138
05:16.360 --> 05:17.600
It gives me the warning.

139
05:17.600 --> 05:19.360
Let's click done again to accept it.

140
05:19.360 --> 05:23.000
And now what I want to do is I want to choose begin installation.

141
05:23.000 --> 05:26.600
So just give this some time to begin installing all the necessary information.

142
05:26.600 --> 05:27.800
And most it does that.

143
05:27.800 --> 05:29.920
I will just temporarily pause the video.

144
05:29.920 --> 05:31.920
Perfect. Everything has now installed.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

144
05:29.920 --> 05:31.920
Perfect. Everything has now installed.

145
05:31.920 --> 05:35.440
What I will now select is reboot system and give it a moment to just reboots.

146
05:35.440 --> 05:36.440
Okay.

147
05:36.440 --> 05:38.120
So now we are presented with a login page.

148
05:38.120 --> 05:41.600
Let's click on our nugget user and I'll type in password one.

149
05:41.600 --> 05:44.620
Now the first thing it's going to say is do we want to take the tour in this

150
05:44.620 --> 05:45.360
case here.

151
05:45.360 --> 05:47.640
I'm just going to select no thanks.

152
05:47.640 --> 05:51.910
Now notice up the very top here, it says please register your system to receive

153
05:51.910 --> 05:52.480
software

154
05:52.480 --> 05:53.480
updates.

155
05:53.480 --> 05:57.900
If you want to download external packages, easiest way to simply get this done

156
05:57.900 --> 05:58.640
is to well

157
05:58.640 --> 05:59.640
register the system.

158
05:59.640 --> 06:00.640
So let's do that.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

158
05:59.640 --> 06:00.640
So let's do that.

159
06:00.640 --> 06:04.430
So the first thing I will do here is just click X and I'm going to go to my

160
06:04.430 --> 06:05.280
terminal.

161
06:05.280 --> 06:08.720
Now you can probably tell that the text is very, very small.

162
06:08.720 --> 06:10.520
What I want to do is to customize things.

163
06:10.520 --> 06:13.800
So I'll go to this option here and then go down to preferences.

164
06:13.800 --> 06:17.640
I will then go to unnamed and then I'll click custom fonts.

165
06:17.640 --> 06:21.280
And then all I'm going to do is to bump up the font size.

166
06:21.280 --> 06:22.840
Then I will just choose colors.

167
06:22.840 --> 06:26.760
I will uncheck this box and then I can select my own color theme.

168
06:26.760 --> 06:29.750
So in this case here, I will just make the background black and I'll make the

169
06:29.750 --> 06:30.120
text.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

169
06:29.750 --> 06:30.120
text.

170
06:30.120 --> 06:32.680
Let's say a red color since it is red at now.

171
06:32.680 --> 06:36.360
This is certainly not necessary, but just to make things a little bit easier to

172
06:36.360 --> 06:36.880
follow.

173
06:36.880 --> 06:39.720
I'm just going to rename the actual computer itself.

174
06:39.720 --> 06:45.230
So I will just say siddle hostname cTL set hyphen hostname and I will just call

175
06:45.230 --> 06:46.040
the device

176
06:46.040 --> 06:47.040
red box.

177
06:47.040 --> 06:50.880
Now I'll type in my admin password, which is going to be password one.

178
06:50.880 --> 06:52.640
Now right now the name has not changed.

179
06:52.640 --> 06:56.220
But if I happen to close the terminal, go back up to activities, open up a

180
06:56.220 --> 06:56.720
brand new

181
06:56.720 --> 06:57.720
one.

182
06:57.720 --> 07:01.600
Notice the name has now changed now with respect to registration.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

182
06:57.720 --> 07:01.600
Notice the name has now changed now with respect to registration.

183
07:01.600 --> 07:05.280
We're only going to concern ourselves with registering the device that is going

184
07:05.280 --> 07:05.520
to be

185
07:05.520 --> 07:09.440
running Ansible, which in my case here is this particular machine.

186
07:09.440 --> 07:13.320
So what I'm going to do is say sudo subscription manager and then the word

187
07:13.320 --> 07:14.120
register.

188
07:14.120 --> 07:17.520
Now I'll have to type in my admin password, which is password one.

189
07:17.520 --> 07:21.270
And now what I'm going to have to do is to provide my red hat enterprise Linux

190
07:21.270 --> 07:22.040
details.

191
07:22.040 --> 07:23.360
Remember we created our accounts.

192
07:23.360 --> 07:26.510
So all I will do is type in my email associated with my red hat account, which

193
07:26.510 --> 07:26.960
in my case

194
07:26.960 --> 07:28.560
here is IPV zero.

195
07:28.560 --> 07:33.120
If I enter, what I'm now going to have to do is to provide the password that is
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

195
07:28.560 --> 07:33.120
If I enter, what I'm now going to have to do is to provide the password that is

196
07:33.120 --> 07:34.000
associated

197
07:34.000 --> 07:35.000
with my red hat account.

198
07:35.000 --> 07:38.240
So this is not the password one that I created on this machine.

199
07:38.240 --> 07:42.120
It's the actual password that we created when we signed up with red hat.

200
07:42.120 --> 07:46.120
So I'll type it in and to enter give it a moment to register.

201
07:46.120 --> 07:48.880
And now it says the system has been registered.

202
07:48.880 --> 07:53.060
What I now want to do is to say sudo subscription manager, attach and to enter

203
07:53.060 --> 07:53.800
and we can see

204
07:53.800 --> 07:55.760
the registration has been successful.

205
07:55.760 --> 07:56.760
Perfect.

206
07:56.760 --> 08:00.460
So if I just say sudo dnf repo list, we now have access to these particular
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

206
07:56.760 --> 08:00.460
So if I just say sudo dnf repo list, we now have access to these particular

207
08:00.460 --> 08:01.480
repositories.

208
08:01.480 --> 08:04.480
And now what I want to do is I want to install Ansible core.

209
08:04.480 --> 08:08.490
So let me just clear the screen and I will now say it's sudo dnf install and

210
08:08.490 --> 08:09.400
let me just

211
08:09.400 --> 08:11.120
access out to clear the screen.

212
08:11.120 --> 08:13.880
And I will just say Ansible hyphen core.

213
08:13.880 --> 08:17.750
If I hit enter, give it a moment to pull in the information, I will just say

214
08:17.750 --> 08:18.360
why and to

215
08:18.360 --> 08:20.520
enter and there we go.

216
08:20.520 --> 08:24.560
So with that now done, what I should be able to do is to say Ansible dash dash

217
08:24.560 --> 08:25.240
version.

218
08:25.240 --> 08:28.640
And we actually see the Ansible version information right here.

219
08:28.640 --> 08:31.740
Now you'll notice for the purposes of recording, just to make things a little
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

219
08:28.640 --> 08:31.740
Now you'll notice for the purposes of recording, just to make things a little

220
08:31.740 --> 08:32.400
bit easier on

221
08:32.400 --> 08:34.720
the eye, I changed the color of the prompt.

222
08:34.720 --> 08:37.480
But that is certainly not anything you have to worry about yourself.

223
08:37.480 --> 08:40.520
What I'm now going to do is simply shut down the machine right now.

224
08:40.520 --> 08:45.200
So if I say shut down dash H now and to enter, we have now created our control

225
08:45.200 --> 08:46.040
machine.

226
08:46.040 --> 08:49.480
Let's now quickly spin up a device that is going to be managed by Ansible.

227
08:49.480 --> 08:53.710
So let's go to fail and new once again, follow the same procedure, install

228
08:53.710 --> 08:54.520
image and just

229
08:54.520 --> 08:56.560
walk through the same type of process.

230
08:56.560 --> 08:57.560
Choose a disk.

231
08:57.560 --> 09:01.240
If you want to use a minimal install, you can reduce these resources greatly.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

231
08:57.560 --> 09:01.240
If you want to use a minimal install, you can reduce these resources greatly.

232
09:01.240 --> 09:04.280
But for me, I'm just going to leave them at the defaults.

233
09:04.280 --> 09:06.960
And I will just call this rail blue box.

234
09:06.960 --> 09:10.240
The name itself doesn't actually matter, but just choose anything you so wish.

235
09:10.240 --> 09:14.330
So I'll pull this up, choose install and I'm just going to follow the same type

236
09:14.330 --> 09:14.880
of options

237
09:14.880 --> 09:16.040
and continue.

238
09:16.040 --> 09:20.430
So like I said with software selection, feel free to choose minimal install if

239
09:20.430 --> 09:21.720
you so wish.

240
09:21.720 --> 09:23.760
Same again when it comes to the root passwords.

241
09:23.760 --> 09:27.310
I'm just going to keep things really simple, choosing password one and I will

242
09:27.310 --> 09:27.920
select done

243
09:27.920 --> 09:30.120
and done again for the user creation.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

243
09:27.920 --> 09:30.120
and done again for the user creation.

244
09:30.120 --> 09:34.010
I'm again going to select nugget user and again, keeping it simple, just use

245
09:34.010 --> 09:34.520
password

246
09:34.520 --> 09:37.960
one again, making this user the administrator.

247
09:37.960 --> 09:39.920
Once that's done, begin installation.

248
09:39.920 --> 09:41.840
So once again, reboot the system.

249
09:41.840 --> 09:46.220
So on this particular box, we do not have to worry about registering the system

250
09:46.220 --> 09:46.600
nor do

251
09:46.600 --> 09:49.600
we have to worry about actually installing Ansible.

252
09:49.600 --> 09:53.780
And all I did on this particular device was change the host name to blue box to

253
09:53.780 --> 09:54.160
make it

254
09:54.160 --> 09:55.400
easier to follow.

255
09:55.400 --> 09:59.200
Now what I'm going to do is stop the video and in the meantime, I will create

256
09:59.200 --> 09:59.720
one more

257
09:59.720 --> 10:03.720
managed device in the exact same way that I created the blue box.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

257
09:59.720 --> 10:03.720
managed device in the exact same way that I created the blue box.

258
10:03.720 --> 10:06.630
The only difference being is that it's going to have a different host name

259
10:06.630 --> 10:07.760
known as yellow

260
10:07.760 --> 10:08.760
box.

261
10:08.760 --> 10:12.010
From now, I will stop the video, continue the task and I will see you in the

262
10:12.010 --> 10:12.800
very next video

263
10:12.800 --> 10:15.200
where we talk about SSH authentication.
