110 likes | 116 Views
Passcert provides Download 2022 Free RedHat EX294 Practice Exam Dumps which can assist you in preparing for the exam and achieving your certification with confidence.
E N D
Free RedHat EX294 Practice Exam Q&As Red Hat Certified Engineer (RHCE) exam for Red Hat Enterprise https://www.passcert.com/EX294.html
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 1. CORRECT TEXT 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. Answer: Solution as:
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 2. CORRECT TEXT Create an empty encrypted file calledmyvault.yml in /home/sandy/ansibleand set the passwordtonotsafepw. Rekey the passwordtoiwejfj2221. Answer: ansible-vault create myvault.yml Create new password: notsafepw Confirm password: notsafepwansible-vault rekeymyvault.yml Current password: notsafepw New password: iwejfj2221 Confirm password: iwejfj2221
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 3. CORRECT TEXT 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' Answer: Solution as:
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 4. CORRECT TEXT Create anansible vault password file calledlock.ymlwith the passwordreallysafepwin the /home/sandy/ansibledirectory. In the lock.yml file define two variables. One ispw_devand the password is 'dev' and the other ispw_mgrand the password is 'mgr' Create a regular file calledsecret.txtwhich contains the password for lock.yml. Answer: ansible-vault create lock.yml New Vault Password: reallysafepw Confirm: reallysafepw
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 5. CORRECT TEXT Create a file calledrequirements.ymlin/home/sandy/ansible/rolesto 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. Answer: in /home/sandy/ansible/roles vim requirements.yml Run the requirements file from the roles directory: ansible-galaxy install -r requirements.yml - p/home/sandy/ansible/roles
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 6. CORRECT TEXT Create a playbookthatchanges the default target onallnodes tomulti- usertarqet. Do this in playbook file called target.yml in/home/sandy/ansible Answer: name: change default target hosts: all tasks: name: change target file: src: /usr/lib/systemd/system/multi- user.target dest:/etc/systemd/system/default.target state: link
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 7. CORRECT TEXT 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". Answer: /home/sandy/ansible/apache.yml /home/sandy/ansible/roles/sample-apache/tasks/main.yml
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 8. CORRECT TEXT Create a file calledadhoc.shin/home/sandy/ansiblewhich will use adhoc commands to set up a new repository. The name of the repo will be 'EPEL' thedescription '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. Answer: 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'
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 9. CORRECT TEXT Create a file calledrequirements.ymlin/home/sandy/ansible/rolesa file calledrole.yml in /home/sandy/ansible/.Thehaproxy-roleshould be used on theproxyhost. And when you curlhttp://node3.example.comit should display "Welcome tonode4.example.com" and when you curl again "Welcome tonode5.example.com"Thephp-roleshould be used on theprod host. Answer: Solution as: Check the proxy host by curlhttp://node3.example.com
Free RedHat EX294 Practice Exam From Passcert for Your Best Preparation 10. CORRECT TEXT 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. Answer: Solution as: