WEBVTT

1
00:00.000 --> 00:04.000
Okay friends, so here is the validation challenge. The very first thing that I

2
00:04.000 --> 00:04.880
would like you to do

3
00:04.880 --> 00:09.680
is to create custom facts on one of your devices. This file should be called

4
00:09.680 --> 00:10.880
validation with the

5
00:10.880 --> 00:16.010
correct extension. Then inside of this file I should have a heading saying n

6
00:16.010 --> 00:16.880
uggets. And then

7
00:16.880 --> 00:21.340
below create a key called Linux with a corresponding value of Red Hat. Once you

8
00:21.340 --> 00:22.160
have done that,

9
00:22.160 --> 00:27.080
I want you to use Ansible to retrieve this custom fact from the device. Then I

10
00:27.080 --> 00:27.920
would like to write

11
00:27.920 --> 00:32.390
another playbook that is going to run the pwd command against both managed
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

11
00:27.920 --> 00:32.390
another playbook that is going to run the pwd command against both managed

12
00:32.390 --> 00:33.520
devices and display

13
00:33.520 --> 00:37.730
the output. And then finally, I want you to write another playbook that is

14
00:37.730 --> 00:39.280
going to create a temp

15
00:39.280 --> 00:43.680
validation directory on both devices. And the playbook should print out the

16
00:43.680 --> 00:45.120
message validation

17
00:45.120 --> 00:50.090
directory has been created. Now crucially, this message should only appear when

18
00:50.090 --> 00:51.280
the directory is

19
00:51.280 --> 00:56.360
created. Quite simply, if you rerun the playbook and the directory is already

20
00:56.360 --> 00:57.280
in existence,

21
00:57.280 --> 01:01.840
that message should not appear. So give it a think, burp your terminal and I
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

21
00:57.280 --> 01:01.840
that message should not appear. So give it a think, burp your terminal and I

22
01:01.840 --> 01:02.560
will see you in the

23
01:02.560 --> 01:06.880
very next video where we discussed the solution.
