This page was exported from Actual Test Materials [ http://blog.actualtests4sure.com ] Export date:Fri Nov 15 21:29:26 2024 / +0000 GMT ___________________________________________________ Title: [UPDATED 2022] RedHat EX447 Questions Prepare with Free Demo of PDF [Q15-Q31] --------------------------------------------------- [UPDATED 2022] RedHat EX447 Questions Prepare with Free Demo of PDF NEW 2022 Certification Sample Questions EX447 Dumps & Practice Exam RedHat EX447 Exam Syllabus Topics: TopicDetailsTopic 1Override 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 2Perform basic configuration of Ansible Tower after configuration Populate variables with data from external sources using lookup pluginsTopic 3Set up directories containing multiple host variable files for some of your managed hosts Create machine credentials to access inventory hostsTopic 4Create a source control credential Control privilege execution Manage inventory variablesTopic 5Inspect, validate, and manipulate variables containing networking information with filters Update, modify and create files in a Git repositoryTopic 6Run 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 7Use lookup and query functions to template data from external sources into playbooks and deployed template files   NEW QUESTION 15Create 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: latestNEW QUESTION 16Create 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.ymlNEW QUESTION 17Create 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:NEW QUESTION 18Using 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.comNEW QUESTION 19Create 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: reallysafepwNEW QUESTION 20Create 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:NEW QUESTION 21Create 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’NEW QUESTION 22Using 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”NEW QUESTION 23Create 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. See the Explanation for complete Solution below.Explanationansible-playbook users.yml -vault-password-file=secret.txtNEW QUESTION 24Create 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/roles Loading … EX447 Deluxe Study Guide with Online Test Engine: https://www.actualtests4sure.com/EX447-test-questions.html --------------------------------------------------- Images: https://blog.actualtests4sure.com/wp-content/plugins/watu/loading.gif https://blog.actualtests4sure.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-05-20 23:29:30 Post date GMT: 2022-05-20 23:29:30 Post modified date: 2022-05-20 23:29:30 Post modified date GMT: 2022-05-20 23:29:30