aiotestking uk

EX294 Exam Questions - Online Test


EX294 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Want to know Ucertify EX294 Exam practice test features? Want to lear more about Red-Hat Red Hat Certified Engineer (RHCE) exam certification experience? Study 100% Guarantee Red-Hat EX294 answers to Most up-to-date EX294 questions at Ucertify. Gat a success with an absolute guarantee to pass Red-Hat EX294 (Red Hat Certified Engineer (RHCE) exam) test on your first attempt.

Online EX294 free questions and answers of New Version:

NEW QUESTION 1
Create a role called sample-apache in /home/sandy/ansible/roles that enables and starts httpd, enables and starts the firewall and allows the webserver service. Create a template calledindex.html.j2 which creates and serves a message from /var/www/html/index.html Whenever the content of the file changes, restart the webserver service.
Welcome to [FQDN] on [IP]
Replace the FQDN with the fully qualified domain nameand IP with the ip address of the node using ansible facts. Lastly, create a playbook in /home/sandy/ansible/ called apache.yml and use the role to serve the index file on webserver hosts.


Solution:
/home/sandy/ansible/apache.yml
EX294 dumps exhibit
/home/sandy/ansible/roles/sample-apache/tasks/main.yml
EX294 dumps exhibit
/home/sandy/ansible/roles/sample-apache/templates/index.html.j2
EX294 dumps exhibit
In /home/sandy/ansible/roles/sample-apache/handlers/main.yml
EX294 dumps exhibit

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 2
Install and configure ansible
User sandy has been created on your control node with the appropriate permissions already, do not change or modify ssh keys. Install the necessary packages to run ansible on the control node. Configure ansible.cfg to be in folder /home/sandy/ansible/ansible.cfg and configure to access remote machines via the sandy user. All roles should be in the path /home/sandy/ansible/roles. The inventory path should be in
/home/sandy/ansible/invenlory.
You will have access to 5 nodes. node1.example.com node2.example.com node3.example.com node4.example.com node5.example.com
Configure these nodes to be in an inventory file where node I is a member of group dev. nodc2 is a member of group test, node3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.


Solution:

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]
node1 .example.com [test] node2.example.com [proxy]
node3 .example.com [prod] node4.example.com node5 .example.com [webservers:children] prod

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 3
Create a file called requirements.yml in/home/sandy/ansible/roles to install two roles. The source for the first role is geerlingguy.haproxy and geerlingguy.php. Name the first haproxy-role and the second php-role. The roles should be installed in /home/sandy/ansible/roles.


Solution:
in /home/sandy/ansible/roles vim requirements.yml
EX294 dumps exhibit
Run the requirements file from the roles directory:
ansible-galaxy install -r requirements.yml -p/home/sandy/ansible/roles

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 4
Create a file in /home/sandy/ansible/calledreport.yml. Using this playbook, get a filecalledreport.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 informationofthehosts. Ifa disk does not exist then write NONE.
EX294 dumps exhibit


Solution:
See the explanation for complete Solution below.
Explanation
Solution as:
EX294 dumps exhibit
EX294 dumps exhibit

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 5
Create a file called packages.yml in/home/sandy/ansible to install some packages for the following hosts. On dev, prod and webservers install packages httpd, mod_ssl, and mariadb. On dev only install the development tools package. Also, on dev host update all the packages to the latest.


Solution:
Solution as:
EX294 dumps exhibit
** NOTE 1 a more acceptable answer is likely 'present' since it's not asking to install the latest
state: present
** NOTE 2 need to update the development node
- name: update all packages on development node
yum:
name: '*'
state: latest

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 6
Create a file called adhoc.sh in /home/sandy/ansible which will use adhoc commands to set up a new repository. The name of the repo will be 'EPEL' the description 'RHEL8' the baseurl is' https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp' there is no gpgcheck, but you should enable the repo.
* You should be able to use an bash script using adhoc commands to enable repos. Depending on your lab setup, you may need to make this repo "state=absent" after you pass this task.


Solution:

chmod0777adhoc.sh
vim adhoc.sh
#I/bin/bash
ansible all -m yum_repository -a 'name=EPEL description=RHEL8 baseurl=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp
gpgcheck=no enabled=yes'

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 7
......

100% Valid and Newest Version EX294 Questions & Answers shared by 2passeasy, Get Full Dumps HERE: https://www.2passeasy.com/dumps/EX294/ (New 20 Q&As)