This page was exported from Valid Premium Exam [ http://premium.validexam.com ] Export date:Mon Feb 24 15:27:56 2025 / +0000 GMT ___________________________________________________ Title: [Jun 08, 2022] EX447 certification guide Q&A from Training Expert ValidExam [Q10-Q27] --------------------------------------------------- [Jun 08, 2022] EX447 certification guide Q&A from Training Expert ValidExam EX447 Certification Overview Latest EX447 PDF Dumps Q10. Create a role called sample-apache in that enables and starts httpd, enables and starts the firewall and allows the webserver service. Create a template calledindex.html.j2which creates and serves a message from/var/www/html/index.htmlWhenever the content of the file changes, restart the webserver service.Welcome to [FQDN] on [IP]Replace the FQDN with the fully qualified domain name and IP with the ip address of the node using ansible facts. Lastly, create a playbook in/home/sandy/ansible/calledapache.ymland use the role to serve the index file on webserver hosts. See theExplanation for complete Solution below.Explanation/home/sandy/ansible/apache.yml/home/sandy/ansible/roles/sample-apache/tasks/main.yml/home/sandy/ansible/roles/sample-apache/templates/index.html.j2In /home/sandy/ansible/roles/sample-apache/handlers/main.ymlQ11. Create a file calledpackages.yml in/home/sandy/ansibleto 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 tothe latest. See the Explanation for complete Solution below.ExplanationSolution as:** 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 thedevelopment node– name: update all packages on development nodeyum:name: ‘*’state: latestQ12. Using the Simulation Program,perform the following tasks:1. Use an ansible ad-hoc command, check the connectivity of your servers.2. Use an ad-hoc ansible command, find the free space of your servers.3. Use an ad-hoc ansible command, find out the memory usage of your servers.4. Do an ls -l on the targets /var/log/messages file.5. Tail the contents of the targets /var/log/messages file. See the Explanation for complete Solution below.Explanation1. ansible all -m ping2. ansible all -a “/bin/df -h”3. ansible all-a “/usr/bin/free”4. ansible all -a “ls -l /var/log/messages”5. ansible local -b -a “tail /var/log/messages”Q13. Create an ansible 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. See the Explanation for complete Solution below.Explanationansible-vault create lock.ymlNew Vault Password: reallysafepwConfirm: reallysafepwQ14. Create a file calledrequirements.ymlin/home/sandy/ansible/rolesa file calledrole.yml in/home/sandy/ansible/.Thehaproxy-roleshould be used on the host. And when you curlhttp://node3.example.comit should display “Welcome tonode4.example.com” and when you curl again“Welcome tonode5.example.com” The See the Explanation for complete Solution below.ExplanationSolution as:Check the proxy host by curlhttp://node3.example.comQ15. Create a playbook calledwebdev.ymlin’home/sandy/ansible. The playbook will create a directory Avcbdev on dev host. The permission of the directory are 2755 and owner is webdev. Create a symbolic link from/Webdevto /var/www/html/webdev. Serve a file from Avebdev7index.html which displays the text“Development” Curlhttp://node1.example.com/webdev/index.htmlto test See the Explanation for complete Solution below.ExplanationSolution as:Q16. 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”. See the Explanation for complete Solution below.Explanation/home/sandy/ansible/apache.yml/home/sandy/ansible/roles/sample-apache/tasks/main.ymlQ17. Install and configure ansibleUserbobhas been created on your control node. Give him the appropriate permissions on the control 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 other path that maybe 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 bob user.Create an inventory file for the following five nodes:nodel.example.comnode2.example.comnode3.example.comnode4.example.comnode5.example.comConfigure 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 group nodc4 and node 5 are members of groupprod.Also,prodis a member of group webservers. See the Explanation for complete Solution below.ExplanationIn/home/sandy/ansible/ansible.cfg[defaults]inventory=/home/sandy/ansible/inventoryroles_path=/home/sandy/ansible/rolesremote_user= sandyhost_key_checking=false[privilegeescalation]become=truebecome_user=rootbecome_method=sudobecome_ask_pass=falseIn /home/sandy/ansible/inventory[dev]node1 .example.com[test]node2.example.com[proxy]node3 .example.com[prod]node4.example.comnode5 .example.com[webservers:children]prodQ18. Create an empty encrypted file called and set the passwordtonotsafepw.Rekey the passwordtoiwejfj2221. See the Explanation for complete Solution below.Explanationansible-vault create myvault.ymlCreate new password: notsafepw Confirm password: notsafepwansible-vault rekey myvault.yml Current password: notsafepw New password: iwejfj2221 Confirm password: iwejfj2221Q19. Create a file calledadhoc.shin/home/sandy/ansiblewhich will use adhoc commands to set up anew 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. See the Explanation for complete Solution below.Explanationchmod0777adhoc.shvim adhoc.sh#I/bin/bashansible all -m yum_repository -a ‘name=EPEL description=RHEL8baseurl=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp gpgcheck=no enabled=yes’ Loading … RedHat EX447 Exam Syllabus Topics: TopicDetailsTopic 1Perform basic configuration of Ansible Tower after configuration Populate variables with data from external sources using lookup pluginsTopic 2Use special variables to override the host, port, or remote user Ansible uses for a specific host Transform data with filters and pluginsTopic 3Inspect, validate, and manipulate variables containing networking information with filters Update, modify and create files in a Git repositoryTopic 4Override the name used in the inventory file with a different name or IP address Create Ansible Tower users and teams and make associations of one to the otherTopic 5Set up directories containing multiple host variable files for some of your managed hosts Create machine credentials to access inventory hostsTopic 6Create a dynamic inventory from an identity management server or a database server Structure host and group variables using multiple files per host or groupTopic 7Run a task for a managed host on a different host, then control whether facts gathered by that task are delegated to the managed host or the other hostTopic 8Create a source control credential Control privilege execution Manage inventory variablesTopic 9Implement loops using structures other than simple lists using lookup plugins and filters Add those modified files back into the Git repository   The Best RedHat EX447 Study Guides and Dumps of 2022: https://www.validexam.com/EX447-latest-dumps.html --------------------------------------------------- Images: https://premium.validexam.com/wp-content/plugins/watu/loading.gif https://premium.validexam.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-06-08 13:01:59 Post date GMT: 2022-06-08 13:01:59 Post modified date: 2022-06-08 13:01:59 Post modified date GMT: 2022-06-08 13:01:59