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 11 Question 29 Discussion

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

Create an ansible vault password file called lock.yml with the password reallysafepw in the /home/sandy/ansible directory. In the lock.yml file define two variables. One is pw_dev and the password is 'dev' and the other is pw_mgr and the password is 'mgr' Create a regular file called secret.txt which contains the password for lock.yml.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Aretha
3 months ago
Why do we need a separate secret.txt file for the password?
upvoted 0 times
...
Denae
3 months ago
Totally agree, that password could be better!
upvoted 0 times
...
Rodolfo
4 months ago
Wait, is 'reallysafepw' a secure password? Seems weak.
upvoted 0 times
...
Tish
4 months ago
The passwords are pw_dev='dev' and pw_mgr='mgr'.
upvoted 0 times
...
Carmelina
4 months ago
Just created the lock.yml file in /home/sandy/ansible!
upvoted 0 times
...
Vivan
4 months ago
I think I need to use the `ansible-vault encrypt` command for the secret.txt file, but I’m not entirely sure how to link it back to lock.yml.
upvoted 0 times
...
Mitsue
4 months ago
I believe the command to create the secret.txt file is just echoing the password into it, but I’m a bit confused about how to reference the vault password in that file.
upvoted 0 times
...
Lyndia
5 months ago
I practiced a similar question where I had to create a vault file, but I can't recall if I need to specify the variables in YAML format after creating the vault.
upvoted 0 times
...
Dorothy
5 months ago
I think I remember that to create the vault file, I need to use the ansible-vault command, but I'm not sure about the exact syntax for defining the variables inside lock.yml.
upvoted 0 times
...
Xuan
5 months ago
Hmm, I'm a bit confused about the different host groups and password variables. I'll need to read through the question carefully to make sure I understand all the requirements before I start coding.
upvoted 0 times
...
Doyle
5 months ago
Hmm, I'm not sure about this one. I'll need to review the options more carefully to determine the right source.
upvoted 0 times
...

Save Cancel