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

Updated On: 19-Jan-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 file in /home/sandy/ansible/ called report.yml. Using this playbook, get a filecalled report.txt (make it look exactly as below). Copy this file over to all remote hosts at /root/report.txt. Then edit the lines in the file to provide the real information the of hosts. If a disk does not exist then write NONE.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:



Install and configure ansible

User bob has been created on your control node. Give him the appropriate permissions on thecontrol node. Install the necessary packages to run ansible on the control node.

Create a configuration file /home/bob/ansible/ansible.cfg to meet the following requirements:

· The roles path should include /home/bob/ansible/roles, as well as any otherpath that may be required for the course of the sample exam.

· The inventory file path is /home/bob/ansible/inventory.

· Ansible should be able to manage 10 hosts at a single time.

· Ansible should connect to all managed nodes using the bobuser.

Create an inventory file for the following five nodes:

nodel.example.com

node2.example.com

node3.example.com

node4.example.com

node5.example.com

Configure these nodes to be in an inventory file where node1 is a member of group dev. nodc2 is a member of group test, nodc3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

In/home/sandy/ansible/ansible.cfg

[defaults]

inventory=/home/sandy/ansible/inventory

roles_path=/home/sandy/ansible/roles

remote_user= sandy

host_key_checking=false

[privilegeescalation]

become=true

become_user=root

become_method=sudo

become_ask_pass=false

In /home/sandy/ansible/inventory

[dev]

node 1 .example.com

[test]

node2.example.com

[proxy]

node3 .example.com

[prod]

node4.example.com

node5 .example.com

[webservers:children]

prod

Answer(s):



Create a file called specs.empty in home/bob/ansible on the local machine as follows:

HOST=

MEMORY=

BIOS=

VDA_DISK_SIZE=

VDB_DISK_SIZE=

Create the playbook /home/bob/ansible/specs.yml which copies specs.empty to all remote nodes' path/root/specs.txt. Using the specs.yml playbook then edit specs.txt on the remote machines to reflect the appropriate ansible facts.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:



Create a playbook calledtimesvnc.yml in /home/sandy/ansible using rhel system role timesync. Set the time to use currently configured nip with the server 0.uk.pool.ntp.org. Enable burst. Do this on all hosts.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:



Answer(s):



Viewing page 2 of 5
Viewing questions 6 - 10 out of 90 questions



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

Join the EX294 Discussion