EX294 | All About Tested EX294 Free Exam

Exam Code: EX294 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Red Hat Certified Engineer (RHCE) exam
Certification Provider: Red-Hat
Free Today! Guaranteed Training- Pass EX294 Exam.

Also have EX294 free dumps questions for you:

NEW QUESTION 1
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".


Solution:
/home/sandy/ansible/apache.yml
EX294 dumps exhibit
/home/sandy/ansible/roles/sample-apache/tasks/main.yml

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

Answer: A

NEW QUESTION 2
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.


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

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

Answer: A

NEW QUESTION 3
In /home/sandy/ansible/create a playbook calledlogvol.yml. Inthe play create a logical volume calledIv0and make it of size 1500MiB on volume groupvgOIf there is not enough space in the volume groupprinta message "Not enough space for logical volume"and then make a 800MiBIv0instead. If the volume group still doesn't exist, create a message"Volume group doesn't exist"Create anxfsfilesystem on allIv0logical volumes. Don't mount the logical volume.


Solution:
Solution as:
EX294 dumps exhibit

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

Answer: A

NEW QUESTION 4
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 5
Install and configure ansible
Userbobhas 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 groupdev.nodc2 is a member of group test, nodc3 is a member of groupproxy,nodc4 and node 5 are members of groupprod.Also,prodis 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]
node 1 .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 6
Create the users in the fileusersjist.ymlfile provided. Do this in a playbook called users.yml located at
/home/sandy/ansible.The passwords for these users should be set using thelock.ymlfile from TASK7. When running the playbook, the lock.yml file should be unlocked withsecret.txtfile from TASK 7.
All users with the job of 'developer' should be created on thedevhosts, add them to the group devops, their password should be set using thepw_devvariable. Likewise create users with the job of 'manager' on theproxy
host and add the users to the group 'managers', their password should be set using thepw_mgrvariable.
EX294 dumps exhibit


Solution:
ansible-playbook users.yml –vault-password-file=secret.txt
EX294 dumps exhibit

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

Answer: A

NEW QUESTION 7
......

Recommend!! Get the Full EX294 dumps in VCE and PDF From Certshared, Welcome to Download: https://www.certshared.com/exam/EX294/ (New 20 Q&As Version)