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.
Suggested Answer: A
Get Premium EX294 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
AR
Aretha
12 months ago
Why do we need a separate secret.txt file for the password?
DE
Denae
12 months ago
Totally agree, that password could be better!
RO
Rodolfo
1 year ago
Wait, is 'reallysafepw' a secure password? Seems weak.
TI
Tish
1 year ago
The passwords are pw_dev='dev' and pw_mgr='mgr'.
CA
Carmelina
1 year ago
Just created the lock.yml file in /home/sandy/ansible!
VI
Vivan
1 year 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.
MI
Mitsue
1 year 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.
LY
Lyndia
1 year 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.
DO
Dorothy
1 year 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.
XU
Xuan
1 year 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.
DO
Doyle
1 year ago
Hmm, I'm not sure about this one. I'll need to review the options more carefully to determine the right source.