So now that we've talked about what we can expect from the actual examination,
what I now want to do to walk you through the building of our little lab that
we want to use
to repair ourselves for the actual exam. Okay, so now we understand the general
format of the
examination. We've discussed some of the tips that we want to use to ensure
that we have the best
possible chance to actually pass the exam. What I now want to do is to walk you
through what is
going to be our little lab environment for running through our little exam
preparation. So once again,
what we're going to have is we're going to have three different nodes on our WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
what we're going to have is we're going to have three different nodes on our
network.
One device is going to be the actual Ansible control node, which is what you
actually see on
your screen right here. This is my Ansible graphical user interface utilizing
Red Hat Enterprise Linux.
So this one here is actually using the graphical user interface installation.
Now throughout this
course, you will have noticed to keep things as simple as possible. And as
graphically pleasing
as possible, I actually had two other devices in my network, both of which were
a graphical user
interface. One was the blue box and the other one was known as the yellow box. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
interface. One was the blue box and the other one was known as the yellow box.
Now in this upcoming
little mock preparation that we're going to be doing, I'm not going to be
managing the graphical
user interfaces. That is because in the actual examination, we're going to be
working with devices
that have a minimal installation. So all I'm going to do is in the meantime, I
'm going to create two
new virtual machines. One can be called, let's maybe say device one, and the
other one can be
called device number two. And like I say, it's just going to be a minimal
installation. So a pure
command line interface environments, because quite honestly, this is a type of WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
command line interface environments, because quite honestly, this is a type of
environment,
we're going to be testing our playbooks against any actual examination. So it
does make sense that
we are ensuring that our actual playbooks are operating as expected. Now for
the purposes of
configuring some storage solutions, what I'm also going to do is I'm also going
to add another disk
to my first device right here. Okay, so let me show you what this actually
looks like. So in the
interest of time, I'm not going to walk through the same type of installation
that we saw before
at the very beginning of this course. All I've done is made a slight difference WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
at the very beginning of this course. All I've done is made a slight difference
in the selection
of choosing minimal installation versus graphical installation with respect to
my managed devices.
Here is device number one. And here is device number two. Both, as you can see
here are these
boring plain old black and white text environments. Number three, respect to my
rail control node,
I'm actually using the same machine that I used before. All I've done is I've
reverted it back
to an initial snapshot. So it doesn't actually have any answer once all done it
. It doesn't have
any configuration files. I'm going to walk through all of that from the WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
any configuration files. I'm going to walk through all of that from the
beginning. So if you're
following along, pretty much have your answer control node at its very basic
stage, just have
your installation of your graphical user interface, and then create these new
two graphical user
interfaces that you're going to manage. Now in my case, in all my three
machines, I have created a
device or rather an account on each of the devices called nugget user. And this
user
has actually got super user access. So it is going to be able to run those
admin commands.
Now there is nothing special about this particular username. It's just a simple WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Now there is nothing special about this particular username. It's just a simple
username that I
happen to choose. If you want to choose a different one, then feel free to do
so. All I would say
is to ensure that whatever name you choose, have it present on all three
devices and make sure
that that particular user is a pseudo or user. So it can use the pseudo
commands. So with that
now done, what I'm first going to do here is just for posterity, I will just
actually change the name
of this device here from red box. This is I'm not using this color based lab
anymore red box,
blue box yellow box. Let me just call this, or just a pseudo hostname cta set WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
blue box yellow box. Let me just call this, or just a pseudo hostname cta set
hyphen hostname.
And I'll just change this to control because it's going to be the control mode
and I'll type in my
super user password. Now it looks like nothing has actually changed. But if I
just type the command
hostname, we can see it has changed. If I X out this particular terminal, and I
just open up a
fresh one like so, now you'll notice the actual username here or rather the
device name has
actually changed. So the very first thing that I want to do is I want to be
able to configure my
host to have my DNS mappings to keep things nice and simple. So all I will do WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
host to have my DNS mappings to keep things nice and simple. So all I will do
here is I will say
pseudo them, it's a hosts, and I'll type in my password here. Now over on my
device one, if I type
IP adder, we can actually see the IP address here is 192.168.160.136. And if I
just great for this to keep
things nice and simple, there is IP address right there. So I want to put that
in and map it to
my hostname of device one. Similarly over on device number two, we can see the
address ends in
.137. Let's also map that. So I will just say 192.168.168.136. And this is WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
.137. Let's also map that. So I will just say 192.168.168.136. And this is
going to map to device number
one. And then 192.168.168.137 is going to map device number two. So if I just
write and quit,
and I just say ping device number one right here and to enter, we can see we do
get a response.
If I press control C, R what we can change it to device number two, we also get
a response from
device, the mapping is working correctly. So check it out then. What I now want
to do is I want to
create an answerable account on every device in the network that is the control WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
create an answerable account on every device in the network that is the control
node and the two
managed nodes. And we want to specify that we can have super user privileges.
And the answerable
is going to be able to log in to these devices utilizing the SSH keys. So the
very first thing
that I'm going to have to do here is on my control node, I'm going to add a
user called answerable.
And then I will say pseudo past wd for the answerable user to actually give the
account a password.
And I'll just give it the password of answerable and they'll confirm it as
answerable. And now
what I want to do is I want to give this particular account a super user access WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
what I want to do is I want to give this particular account a super user access
. So I can say pseudo
vim, it's a pseudo words dot D. And I will just specify the name of the account
I want to be
using so I'll say answerable. Now inside of here, I'm just going to say answer
able, which is the
name of the account. And to give it all of the super user access, I will say
all equals and then
in parentheses, all, and then I'll say no past wd column. All this is going to
allow us to run
the super user command without having to enter a password. So let's just write
and quit. So now
if I just happen to say SU minus answerable, we substitute user to the answer WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
if I just happen to say SU minus answerable, we substitute user to the answer
block out when we
type in our answerable password. And now we can see here I am answerable on the
control node. Now
what you want to ensure is that you have answerable installed on the system.
Again, we've seen how
to do this. So I'm not going to bore you by going through the installation all
over again. Right now
we can act to see my version as well as what my configuration file is. But what
I want to do though,
as I actually want to specify a particular inventory file that you're going to
create. So take this
particular part much like a little challenge that you could expect to see
within the examination. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
within the examination.
So here's what I'm asking you to do. What I want you to do is to create an
answerable
inventory file and inside of it, I want you to have three different groups. So
what we want to have
is we want to have a test group as well as a production group. Now inside of
the test group,
I want you to place the device one host. Okay. So device one will be a member
of that group.
And similarly, device two should be a member of the production group. Now here
's the thing,
both of these groups, the test and production should actually belong to a WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
both of these groups, the test and production should actually belong to a
parent group. And
this group is simply going to be called rel_service. So for now, what I'm going
to do is to pause the
video and at home, I want you to follow along and complete this part of the
actual task.