RedHat EX294 Exam Questions
Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise Linux 8 (Page 2 )

Updated On: 15-Feb-2026

Create a file called requirements.yml /home/sandy/ansible/roles in a file called role.yml in /home/sandy/ansible/. The haproxy-role should be used on the proxy host. And when you curl http://node3.example.com it should display "Welcome tonode4.example.com" and when you curl again "Welcome tonode5.example.com"The php-role should be used on the prod host.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:



Check the proxy host by curlhttp://node3.example.com



Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:




Create a playbook called webdev.yml 'home/sandy/ansible in . The playbook will create a directory Avcbdev on dev host. The permission of the directory are 2755 and owner is webdev. Create a symbolic link from /Webdev to /var/www/html/webdev. Serve a file from Avebdev7index.html which displays the text "Development" Curl http://nod e1.example.com/webdev/index.htmlto test

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:




Create a jinja template in /home/sandy/ansible/ and name it hosts.j2. Edit this file so it looks like the one below. The order of the nodes doesn't matter. Then create a playbook in /home/sandy/ansible called hosts.yml and install the template on dev node at/root/myhosts

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:



Create the users in the file usersjist.yml file provided. Do this in a playbook called users.yml located at /home/sandy/ansible. The passwords for these users should be set using the lock.yml file from TASK7. When running the playbook, the lock.yml file should be unlocked with secret.txt file from TASK 7.

All users with the job of 'developer' should be created on the dev hosts, add them to the group devops, their password should be set using the pw_dev variable. Likewise create users with the job of 'manager' on the proxy host and add the users to the group 'managers', their password should be set using the pw_mgr variable.

users_list.yml

  1. See the Explanation for complete Solution below

Answer(s): A

Explanation:

ansible-playbook users.yml ­vault-password-file=secret.txt






Post your Comments and Discuss RedHat EX294 exam dumps with other Community members:

Join the EX294 Discussion