New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX294 Exam - 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:

0/2000 characters
Royal
3 months ago
This is a solid approach, but I'm not sure about the error handling part.
upvoted 0 times
...
Aaron
3 months ago
Wait, does it really set values to NONE if the hardware is missing?
upvoted 0 times
...
Portia
3 months ago
I think the URL in the playbook is wrong.
upvoted 0 times
...
Val
4 months ago
Totally agree, but what if vdb doesn't exist?
upvoted 0 times
...
Raymon
4 months ago
Sounds straightforward, just need to pull the right facts.
upvoted 0 times
...
Janine
4 months ago
I recall we had to use a loop for replacing multiple values in a file, so I hope I can remember how to set that up correctly in this playbook.
upvoted 0 times
...
Arlette
4 months ago
I feel confident about downloading the file with get_url, but I’m worried I might mix up the variables for memory and BIOS version in the output.
upvoted 0 times
...
Hayley
4 months ago
I think we did a similar question where we had to check for device sizes, but I’m not clear on how to handle the "NONE" value if a device doesn’t exist.
upvoted 0 times
...
Ashley
5 months ago
I remember we practiced creating playbooks that gather system information, but I’m a bit unsure about the exact syntax for the replace module.
upvoted 0 times
...
Velda
5 months ago
This exam question looks pretty straightforward, but I want to make sure I don't miss anything. I'm going to carefully read through the requirements one more time to make sure I understand exactly what I need to do. Then I'll start building out the playbook step-by-step.
upvoted 0 times
...
Elinore
5 months ago
Okay, I think I've got a good strategy for this. First, I'll use the get_url module to download the hwreport.empty file. Then, I'll use the replace module to swap out the placeholders with the actual system facts. And if any of the hardware items don't exist, I'll set the value to "NONE". Feels like a good plan!
upvoted 0 times
...
Junita
5 months ago
Hmm, I'm a bit confused about the part where we need to set the values to "NONE" if the hardware item doesn't exist. Not sure how to handle that properly in the playbook. Might need to do some research on the Ansible replace module.
upvoted 0 times
...
Annmarie
5 months ago
This looks like a pretty straightforward task. I think I can handle this - just need to download the file, replace the placeholders with the actual system information, and save the output. Shouldn't be too difficult.
upvoted 0 times
...
Madelyn
10 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
9 months ago
Yes, using 'block' and 'rescue' will make the playbook more robust and reliable during execution.
upvoted 0 times
...
Desiree
9 months ago
Adding error handling will definitely make the playbook more robust and reliable.
upvoted 0 times
...
Lashandra
9 months 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 months ago
We could also consider using 'block' and 'rescue' to group tasks and handle errors more efficiently.
upvoted 0 times
...
Shenika
9 months 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
9 months ago
That's a good point. We should make sure to capture any errors that occur during the execution.
upvoted 0 times
...
Myra
10 months ago
We can add a 'failed_when' condition to the tasks to handle errors more effectively.
upvoted 0 times
...
...
Doug
10 months ago
Eve
upvoted 0 times
Evan
9 months ago
What should be done if a hardware item does not exist?
upvoted 0 times
...
Melynda
9 months ago
What is the next step after creating the playbook?
upvoted 0 times
...
...
Oliva
10 months ago
Yes, the playbook steps are well explained with the necessary tasks.
upvoted 0 times
...
Quentin
11 months ago
I agree, but the solution provided seems clear.
upvoted 0 times
...
Oliva
11 months ago
I think this question is tricky.
upvoted 0 times
...

Save Cancel