This page was exported from Free Exams Dumps Materials [ http://exams.dumpsmaterials.com ] Export date:Thu Nov 21 9:55:38 2024 / +0000 GMT ___________________________________________________ Title: Buy Latest Jan 11, 2023 EX447 Exam Q&A PDF - One Year Free Update [Q14-Q29] --------------------------------------------------- Buy Latest Jan 11, 2023 EX447 Exam Q&A PDF - One Year Free Update Download the Latest EX447 Dump - 2023 EX447 Exam Questions RedHat EX447 Exam Syllabus Topics: TopicDetailsTopic 1Run 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 2Create a dynamic inventory from an identity management server or a database server Structure host and group variables using multiple files per host or groupTopic 3Set up directories containing multiple host variable files for some of your managed hosts Create machine credentials to access inventory hostsTopic 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 5Use lookup and query functions to template data from external sources into playbooks and deployed template filesTopic 6Write an API scriptlet to launch a job Manage inventories and credentials Create a job workflow templateTopic 7Implement loops using structures other than simple lists using lookup plugins and filters Add those modified files back into the Git repositoryTopic 8Use special variables to override the host, port, or remote user Ansible uses for a specific host Transform data with filters and pluginsTopic 9Create a source control credential Control privilege execution Manage inventory variablesTopic 10Inspect, validate, and manipulate variables containing networking information with filters Update, modify and create files in a Git repository   Q14. Create a jinja template in /home/sandy/ansible/ and name it hosts.j2. Edit this file so it looks like the one below. The order of the nodes doesn’t matter. Then create a playbook in/home/sandy/ansiblecalledhosts.yml and install the template on dev node at See the Explanation for complete Solution below.ExplanationSolution as:Q15. 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’Q16. 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. See the Explanation forcomplete Solution below.ExplanationSolution as:Q17. Install and configure ansibleUser 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.comnode2.example.comnode3.example.comnode4.example.comnode5.example.comConfigure 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. 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 a playbookthatchanges the default target onallnodes tomulti-usertarqet. Do this in playbook file called target.yml in /home/sandy/ansible See the Explanation for complete Solution below.Explanation– name: change default targethosts: alltasks:– name: change targetfile:src:/usr/lib/systemd/system/multi-user.target dest: /etc/systemd/system/default.target state: linkQ19. Create a file called mysecret.yml on the control host using ansible vault in home/bob/ansible. Set the password to ‘notasafepass’ and inside the file create avariable called dev_pass with the value of devops. Save the file.Then go back in the file and change dev_pass value to devops123. Then change the vault password of mysecret.yml to verysafepass See the Explanation for complete Solution below.Explanationansible-vault create lock.ymlNew Vault Password: reallysafepwConfirm: reallysafepwQ20. 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: reallysafepwQ21. Using the Simulation Program, perform the following tasks:Static Inventories Task:1. Add a new group to your default ansible host file. call the group [ec2]2. Add a newhost to the new group you created.3. Add a variable to a new host entry in the /etc/ansible/hosts file. Add the following. localhost http_port=80 maxRequestsPerChild=8084. Check to see if maxRequestsPerChild is pulled out with an ad-hoccommand.5. Create a local host file and put a target group and then a host into it. Then ping it with an ad-hoc command. See the Explanation for complete Solution below.Explanation1. Edit the /etc/ansible/hosts file. Add a group.2. Edit the /etc/ansible/hosts file. Add a user under the group you created.3. Edit the /etc/ansible/hosts file. Find a host. if we add a variable called maxRequestsPerChild to the host it would look like this. host1 maxRequestsPerChild=8084. ansible ec2 -m shell -a “echo {{ maxRequestsPerChild }}”5. Edit a local file. It could be called anything. Lets call it myhosts. Inside the file it would have a host like the following. [mygroup] myusername1.mylabserver.comQ22. 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. See the Explanation for complete Solution below.Explanationin /home/sandy/ansible/rolesvim requirements.ymlRun the requirements file from the roles directory:ansible-galaxy install -r requirements.yml -p /home/sandy/ansible/rolesQ23. Create a role called sample-apache and store it in /home/bob/ansible/roles. The role should satisfy the following requirements:*In the role, install and enable httpd. Also enable the firewall to allow http. Also run the template*index.html.j2 and make sure this runs Create a template index.html.j2that displays “Welcome to the server HOSTNAME” In a play called apache.yml in /home/bob/ansible/ run the sample-apache role. See the Explanation 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.yml Loading … Verified EX447 Dumps Q&As - 1 Year Free & Quickly Updates: https://www.dumpsmaterials.com/EX447-real-torrent.html --------------------------------------------------- Images: https://exams.dumpsmaterials.com/wp-content/plugins/watu/loading.gif https://exams.dumpsmaterials.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2023-01-11 15:12:56 Post date GMT: 2023-01-11 15:12:56 Post modified date: 2023-01-11 15:12:56 Post modified date GMT: 2023-01-11 15:12:56