Redhat: Question & Answers
Redhat: Question & Answers
EX294
Red Hat Certified Engineer (RHCE) exam for Red Hat
Enterprise Linux 8
QUESTION & ANSWERS
https://www.prepare4exams.com/EX294-exam-questions.html
QUESTION 1
In /home/sandy/ansible/ create a playbook called logvol.yml. In the play create a logical volume called
Iv0 and make it of size 1500MiB on volume group vgO If there is not enough space in the volume
group print a message "Not enough space for logical volume" and then make a 800MiB Iv0 instead. If
the volume group still doesn't exist, create a message "Volume group doesn't exist" Create an xfs
filesystem on all Iv0 logical volumes. Don't mount the logical volume.
Explanation/Reference:
Solution as:
https://www.prepare4exams.com/EX294-exam-questions.html
QUESTION 2
Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the
following: The playbook should replaee any existing content of/etc/motd in the following text. Use
ansible facts to display the FQDN of each host
On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".
On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".
On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".
https://www.prepare4exams.com/EX294-exam-questions.html
Explanation/Reference:
/home/sandy/ansible/apache.yml
/home/sandy/ansible/roles/sample-apache/tasks/main.yml
QUESTION 3
Explanation/Reference:
Solution as:
https://www.prepare4exams.com/EX294-exam-questions.html
Check the proxy host by curl http://node3.example.com
https://www.prepare4exams.com/EX294-exam-questions.html