Test Online Free RedHat EX447 Exam Questions and Answers

The questions for EX447 were last updated On Mar.02 2022

Get EX447 Full Access
 / 1

Question No : 1
Use the ad-hoc command to remove httpd fromthe servers.

Answer:

Question No : 2
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

Question No : 3
CORRECT TEXT
Create a playbook called issue.yml in /home/sandy/ansible which changes the file /etc/issue on all managed nodes: If host is a member of (lev then write "Development" If host is a member oftestthen write "Test" If host is a member ofprodthen write "Production"

Answer:Solution as:


Question No : 4
CORRECT TEXT
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.

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'

Question No : 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.

Answer:

Question No : 6
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 rekey
myvault.yml
Current password: notsafepw New password: iwejfj2221 Confirm password: iwejfj222

 / 1
  TOP 50 Exam Questions
Exam