Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam EX294 Topic 3 Question 5 Discussion

Actual exam question for RedHat's EX294 exam
Question #: 5
Topic #: 3
Rekey an existing Ansible vault as follows:
-----------------------------------------------
* Download Ansible vault from http:// classroom.example.com /secret.yml to /home/
admin/ansible/
* The current vault password is curabete
* The new vault password is newvare
* The vault remains in an encrypted state with the new password

Suggested Answer:

Solution as:
# pwd
/home/admin/ansible/
# wget http://classroom.example.com/secret.yml
# chmod 0600 newpassword.txt
# ansible-vault rekey vault.yml --new-vault-password-file=newpassword.txt

by whitebeard pirate at Jan 19, 2025, 08:21 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
whitebeard pirate
2025-01-19 08:21:35
#create the ansible directory if it does not already exist
mkdir /home/student/roles
mkdir /home/student/collections
cd /home/student/ansible
mkdir -p /home/student/ansible

#create the inventory file
vim /home/student/ansible/inventory

# Add the following content to define the inventory:

[dev]
servera.lab.example.com

[test]
serverb.lab.example.com

[prod]
serverc.lab.example.com

[balancers]
serverd.lab.example.com

[webservers:children]
prod

#create the ansible configuration file
vim /home/student/ansible/ansible.cfg

# Add the following content to configure Ansible:

[defaults]
inventory=/home/student/ansible/inventory

remote_user=devops
roles_path=/home/student/ansible/roles:/usr/share/ansible/roles
collections_paths=collections:/usr/share/ansible/collections

[privilege_escalation]
become=True
become_method=sudo
become_user=root
become_ask_pass=False

#verify
ansible version
ansible all --list-hosts
ansible-inventory --graph
ansible-inventory --list -i /home/student/ansible/inventory
ansible all -m ping -I /home/student/ansible/inventory
upvoted 1 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.