So friends, now that we have access to Red Hat Enterprise Linux, as well as our
virtualization
software, what we want to do is to create three different virtual machines.
Now in the case here, we're going to have one particular virtual machine which
is going
to act as our Ansible Control node.
Pretty much this is going to be the machine that is responsible for managing
all other
machines.
Don't worry about the terminology too much, we'll talk about an in an upcoming
video.
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
So this is going to be the machine that is responsible for doing all the
automation.
And quite simply Ansible is just software that we're going to install on a Red
Hat Enterprise
Linux machine.
So once again, the first VM is going to be a Rail based and quite honestly, the
next
two machines, machines two and three are also going to be Rail based.
Now just a point of note with respect to using Ansible, the machines that Ans
ible manage
do not all have to be Red Hat Enterprise Linux.
They could for example be Ubuntu, they could be Rocky Linux, whatever it may be
.
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
The reason why we're using two more additions of Rail has quite simply on the
examination,
you can expect to be managing and dealing with Rail systems.
So it just makes sense to have an entire lab environment all working with Rail.
So like I say, we'll have three different Rail machines, the fourth Rail
machine we
will install Ansible.
In this case here, I'm going to recommend that you install a graphical user
interface
based Rail machine.
This makes things easier to operate.
Now with respect to the machines that are going to be managed by Ansible, if
you happen
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
to be struggling for resources, then you could get away with just using a
minimal install.
This pretty much means that you're just going to get a basic command line
interface, no
nice graphics, no web browser, that type of thing.
But honestly, it's going to be more than enough to practice working with Ans
ible.
Now in my case, the two other additional machines right here, I am also going
to install them
with a graphical user interface.
The reason why I'm doing that is because I have plenty of resources on my
personal computer
and for the purposes of recording, visually for you at home watching, it just
makes it
nice that if you happen to be looking at a graphical user interface. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
nice that if you happen to be looking at a graphical user interface.
But like I say, if you're struggling for resources by all means you can do that
minimal
install for those two.
So let's first walk through the creation of our first machine here, which is
going to
have Ansible installed on it.
So I will pull up my VMware.
Depending if you happen to have a Windows based installation, the interface
might look
a little bit different, but ultimately the configurations are going to be the
same.
The first thing we want to do is to create a new virtual machine.
So I will go to file here and then choose new.
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
In the case here, I'm going to install from a disk or image.
This is going to be the real image that we just downloaded in the previous
video.
Let's click continue.
So in my case here, I will just choose the real image and then select continue.
So right now we have some default settings as it transpires by default, I'm
using 2Gig
of RAM and 20Gig of hardware space that is going to be plenty fine for me.
So if you so wish you can just choose finish.
But if for example, if you happen to have more resource to despair, no harm in
choosing
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
customized settings, let's just give the device a name, which is called this
rail control
click save and then you can go into process as a memory.
If you so wish you can crank the memory up to whatever you need.
Allocate more processes that type of thing if you so wish but the default
should suffice.
So with that now done, I will just click play and then I'm just going to arrow
up to actually
install red hat enterprise Linux and just hit enter.
Now just give it some time to boot up and load.
Now the very first time we're going to have to do is to choose your own
language.
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
In my case here, I'm going to be selecting English and English United Kingdom,
choose
whatever is appropriate for you and then choose continue.
Now the first thing I'm going to do is to choose the installation destination.
Let's click this link here and then I'm going to select this 20 gig hard drive
that I have
cut out for this particular virtual machine.
Once I have that highlighted, I'm going to click again to make sure I see a
tick.
There we go.
And in the case here, I'm not going to worry about data encryption or storage
configuration.
I will leave that automatic and leave the others unchecked.
Let me now just select done.
So with that now done, it says automatic partition and selected. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So with that now done, it says automatic partition and selected.
That's a good sign.
The next one I'm going to go to is network and host name.
So all I want to do is to make sure this ethernet connection is toggled on
right now.
It's on.
If it was off, it would be gray.
In this case here, I want to make sure it is blue.
Once that is done, I will now select done.
Then I'm going to go to software selection.
In the case here, this is going to be my Ansible control mode.
I'm going to recommend you select server with GUI to get that graphical user
interface.
With respect to the other installations, when you're making machine two and WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
With respect to the other installations, when you're making machine two and
three, if you
so wish, feel free to choose minimal install.
I would select the graphical installation.
So let's choose done.
The next thing I'm going to do is to go down to root passwords.
Let me just give a very bad password or password one, which is absolutely not
secure.
But nevertheless, just for lab and environments, let's just keep it simple.
So again, I will say password one and then I will select done.
Okay.
So now we see the root password is set and then I will go down to user creation
.
Let's click this here and let's just give this a name.
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
I'll just call this nugget user and I will also make this user and
administrative.
So we can use the pseudo commands and again, just to keep things all simple, I
will just
choose the password or password one.
Like I say, never ever do this in a real live environment.
That's just because it's a lab and any virtual machine.
In the case here, though, I will click done.
It gives me the warning.
Let's click done again to accept it.
And now what I want to do is I want to choose begin installation.
So just give this some time to begin installing all the necessary information.
And most it does that.
I will just temporarily pause the video.
Perfect. Everything has now installed. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Perfect. Everything has now installed.
What I will now select is reboot system and give it a moment to just reboots.
Okay.
So now we are presented with a login page.
Let's click on our nugget user and I'll type in password one.
Now the first thing it's going to say is do we want to take the tour in this
case here.
I'm just going to select no thanks.
Now notice up the very top here, it says please register your system to receive
software
updates.
If you want to download external packages, easiest way to simply get this done
is to well
register the system.
So let's do that. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So let's do that.
So the first thing I will do here is just click X and I'm going to go to my
terminal.
Now you can probably tell that the text is very, very small.
What I want to do is to customize things.
So I'll go to this option here and then go down to preferences.
I will then go to unnamed and then I'll click custom fonts.
And then all I'm going to do is to bump up the font size.
Then I will just choose colors.
I will uncheck this box and then I can select my own color theme.
So in this case here, I will just make the background black and I'll make the
text. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
text.
Let's say a red color since it is red at now.
This is certainly not necessary, but just to make things a little bit easier to
follow.
I'm just going to rename the actual computer itself.
So I will just say siddle hostname cTL set hyphen hostname and I will just call
the device
red box.
Now I'll type in my admin password, which is going to be password one.
Now right now the name has not changed.
But if I happen to close the terminal, go back up to activities, open up a
brand new
one.
Notice the name has now changed now with respect to registration. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Notice the name has now changed now with respect to registration.
We're only going to concern ourselves with registering the device that is going
to be
running Ansible, which in my case here is this particular machine.
So what I'm going to do is say sudo subscription manager and then the word
register.
Now I'll have to type in my admin password, which is password one.
And now what I'm going to have to do is to provide my red hat enterprise Linux
details.
Remember we created our accounts.
So all I will do is type in my email associated with my red hat account, which
in my case
here is IPV zero.
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
If I enter, what I'm now going to have to do is to provide the password that is
associated
with my red hat account.
So this is not the password one that I created on this machine.
It's the actual password that we created when we signed up with red hat.
So I'll type it in and to enter give it a moment to register.
And now it says the system has been registered.
What I now want to do is to say sudo subscription manager, attach and to enter
and we can see
the registration has been successful.
Perfect.
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
So if I just say sudo dnf repo list, we now have access to these particular
repositories.
And now what I want to do is I want to install Ansible core.
So let me just clear the screen and I will now say it's sudo dnf install and
let me just
access out to clear the screen.
And I will just say Ansible hyphen core.
If I hit enter, give it a moment to pull in the information, I will just say
why and to
enter and there we go.
So with that now done, what I should be able to do is to say Ansible dash dash
version.
And we actually see the Ansible version information right here.
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
Now you'll notice for the purposes of recording, just to make things a little
bit easier on
the eye, I changed the color of the prompt.
But that is certainly not anything you have to worry about yourself.
What I'm now going to do is simply shut down the machine right now.
So if I say shut down dash H now and to enter, we have now created our control
machine.
Let's now quickly spin up a device that is going to be managed by Ansible.
So let's go to fail and new once again, follow the same procedure, install
image and just
walk through the same type of process.
Choose a disk.
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
If you want to use a minimal install, you can reduce these resources greatly.
But for me, I'm just going to leave them at the defaults.
And I will just call this rail blue box.
The name itself doesn't actually matter, but just choose anything you so wish.
So I'll pull this up, choose install and I'm just going to follow the same type
of options
and continue.
So like I said with software selection, feel free to choose minimal install if
you so wish.
Same again when it comes to the root passwords.
I'm just going to keep things really simple, choosing password one and I will
select done
and done again for the user creation. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
and done again for the user creation.
I'm again going to select nugget user and again, keeping it simple, just use
password
one again, making this user the administrator.
Once that's done, begin installation.
So once again, reboot the system.
So on this particular box, we do not have to worry about registering the system
nor do
we have to worry about actually installing Ansible.
And all I did on this particular device was change the host name to blue box to
make it
easier to follow.
Now what I'm going to do is stop the video and in the meantime, I will create
one more
managed device in the exact same way that I created the blue box. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
managed device in the exact same way that I created the blue box.
The only difference being is that it's going to have a different host name
known as yellow
box.
From now, I will stop the video, continue the task and I will see you in the
very next video
where we talk about SSH authentication.