Title | EX407-demo11 - RHCE_Certification_EX294 |
---|---|
Author | MD Showeb Arif Siddiuqie |
Course | Produktion- und Logistik |
Institution | Hochschule Aschaffenburg |
Pages | 18 |
File Size | 820.6 KB |
File Type | |
Total Downloads | 26 |
Total Views | 119 |
RHCE_Certification_EX294...
Red Hat Certified Specialist EX407 Red Hat Certified Specialist in Ansible Automation Exam
Thank You for Downloading EX407 Updated Exam Questions https://www.certsaway.com/redhat/ex407-exam-dumps
https://www.certsaway.com/
Braindumps Questions
RedHat - E
Question #:1
Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and the following: • Uses the timesync RHEL system role. • Sets the ntp server to 0.uk.pool.ntp.org • Sets the timezone to UTC See the Explanation for complete Solution below.
Explanation Solution as:
Question #:2
Create a file in /home/sandy/ansible/called report.yml.Using this playbook, get a filecalledreport.txt(m look exactly as below). Copy this file over to all remote hosts at /root/report.txt.Then edit the lines in t to provide the real informationofthehosts. If a disk does not exist then write NONE.
https://www.certsaway.com/
Braindumps Questions See the Explanation for complete Solution below.
Explanation Solution as:
RedHat - E
https://www.certsaway.com/
Braindumps Questions
RedHat - E
Question #:3 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.j2 that displays "Welcome to the s
https://www.certsaway.com/
Braindumps Questions 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
RedHat - E
https://www.certsaway.com/
Braindumps Questions
RedHat - E
https://www.certsaway.com/
Braindumps Questions
RedHat - E
/home/sandy/ansible/roles/sample-apache/templates/index.html.j2
In /home/sandy/ansible/roles/sample-apache/handlers/main.yml
Question #:4
Create a file calledrequirements.ymlin/home/sandy/ansible/rolesto install two roles. The source for th role is geerlingguy.haproxy and geerlingguy.php. Name the first haproxy-role and the second php-role. roles should be installed in/home/sandy/ansible/roles. See the Explanation for complete Solution below.
Explanation in /home/sandy/ansible/roles vim requirements.yml
https://www.certsaway.com/
Braindumps Questions
RedHat - E
Run the requirements file from the roles directory: ansible-galaxy install -r requirements.yml -p/home/sandy/ansible/roles Question #:5 Create a playbook called timesvnc.yml in/home/sandy/ansible using rhel system role timesync. Set the use currently configured nip with the server 0.uk.pool.ntp.org. Enable burst. Do this on all hosts. See the Explanation for complete Solution below.
Explanation Solution as:
Question #:6
Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following playbook should replaee any existing content of/etc/motd in the following text. Use ansible facts to disp 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".
https://www.certsaway.com/
Braindumps Questions
RedHat - E
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.yml Question #:7
Create a file called adhoc.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 sh enable the repo.
* You should be able to use an bash script using adhoc commands to enable repos. Depending on y lab setup, you may need to make this repo "state=absent" after you pass this task. See the Explanation for complete Solution below.
Explanation 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
https://www.certsaway.com/...