Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat Exam EX294 Topic 6 Question 54 Discussion

Actual exam question for RedHat's EX294 exam
Question #: 54
Topic #: 6
[All EX294 Questions]

Create a playbook called hwreport.yml that produces an output file called /root/

hwreport.txt on all managed nodes with the following information:

------------------------------------------------------------------------------------------------------

--> Inventory host name

--> Total memory in MB

--> BIOS version

--> Size of disk device vda

--> Size of disk device vdb

Each line of the output file contains a single key-value pair.

* Your playbook should:

--> Download the file hwreport.empty from the URL http://classroom.example.com/

hwreport.empty and

save it as /root/hwreport.txt

--> Modify with the correct values.

note: If a hardware item does not exist, the associated value should be set to NONE

----------------------------------------------------------------------------------------------

while practising you to create these file hear. But in exam have to download as per

questation.

hwreport.txt file consists.

my_sys=hostname

my_BIOS=biosversion

my_MEMORY=memory

my_vda=vdasize

my_vdb=vdbsize

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Madelyn
1 months ago
The playbook looks great, but I'm a little worried about the `ignore_errors` setting. What if something goes wrong during the execution, and we miss important information in the output file? Maybe we could add some error handling instead.
upvoted 0 times
Simona
3 days ago
Yes, using 'block' and 'rescue' will make the playbook more robust and reliable during execution.
upvoted 0 times
...
Desiree
3 days ago
Adding error handling will definitely make the playbook more robust and reliable.
upvoted 0 times
...
Lashandra
8 days ago
That's a good idea. We can also use 'block' and 'rescue' keywords to group tasks and handle errors more efficiently.
upvoted 0 times
...
Charlene
9 days ago
We could also consider using 'block' and 'rescue' to group tasks and handle errors more efficiently.
upvoted 0 times
...
Shenika
13 days ago
We can add a 'failed_when' condition to the tasks to handle errors and ensure important information is not missed.
upvoted 0 times
...
Graciela
18 days ago
That's a good point. We should make sure to capture any errors that occur during the execution.
upvoted 0 times
...
Myra
1 months ago
We can add a 'failed_when' condition to the tasks to handle errors more effectively.
upvoted 0 times
...
...
Doug
1 months ago
Eve
upvoted 0 times
Evan
9 days ago
What should be done if a hardware item does not exist?
upvoted 0 times
...
Melynda
11 days ago
What is the next step after creating the playbook?
upvoted 0 times
...
...
Oliva
2 months ago
Yes, the playbook steps are well explained with the necessary tasks.
upvoted 0 times
...
Quentin
2 months ago
I agree, but the solution provided seems clear.
upvoted 0 times
...
Oliva
2 months ago
I think this question is tricky.
upvoted 0 times
...

Save Cancel