nerdexam
Red_HatRed_Hat

EX294 · Question #8

EX294 Question #8: Real Exam Question with Answer & Explanation

Sign in or unlock EX294 to reveal the answer and full explanation for question #8. The question stem and answer options stay visible for context.

Submitted by katya_ua· Apr 18, 2026Work with Roles

Question

08. Using Roles from Ansible Galaxy Create a playbook named /home/greg/ansible/roles.yml according to the following requirements: - The playbook should include a play that runs on hosts in the balancers host group and uses the balancer role. This role configures a service to balance web output: Welcome to node3.lab.example.com on 172.25.250.11 Reloading the browser should generate output from another web server: Welcome to node4.lab.example.com on 172.25.250.12 The playbook should include a play that runs on hosts in the webservers host group and uses the phpinfo role. Accessing hosts in the webservers group via the URL /hello.php should generate the following output: Hello PHP World from FQDN Where FQDN is the fully qualified domain name of the host. Additionally, various detailed information about PHP configuration, such as installed PHP version, should be displayed. Explanation Explanation/Reference: Solution: [greg@control ansible]$ vim /home/greg/ansible/roles.yml --- - name: Use role phpinfo hosts: webservers roles: - phpinfo - name: Use role balancer hosts: balancers roles: - balancer [greg@control ansible]$ ansible-navigator run roles.yml -m stdout

Unlock EX294 to see the answer

You've previewed enough free EX294 questions. Unlock EX294 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Ansible Playbook#Ansible Roles#Playbook Structure#Host Groups
Full EX294 PracticeBrowse All EX294 Questions