Free EX447 Exam Braindumps (page: 2)

Page 1 of 7

CORRECT TEXT
Create a file called specs.empty in home/bob/ansible on the local machine as follows:

HOST=
MEMORY=
BIOS=
VDA_DISK_SIZE=
VDB_DISK_SIZE=

Create the playbook /home/bob/ansible/specs.yml which copies specs.empty to all remote nodes' path /root/specs.txt. Using the specs.yml playbook then edit specs.txt on the remote machines to reflect theappropriate ansible facts.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

Solution as:







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.

  1. See the Explanation for complete Solution below.

Answer(s): A

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 gpgcheck=no enabled=yes'



CORRECT TEXT

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.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

in /home/sandy/ansible/roles
vim requirements.yml



Run the requirements file from the roles directory:
ansible-galaxy install -r requirements.yml -p /home/sandy/ansible/roles



CORRECT TEXT

Create an empty encrypted file calledmyvault.yml in /home/sandy/ansibleand set the passwordtonotsafepw. Rekey the passwordtoiwejfj2221.

  1. See the Explanation for complete Solution below.

Answer(s): A

Explanation:

ansible-vault create myvault.yml
Create new password: notsafepw Confirm password: notsafepwansible-vault rekey myvault.yml
Current password: notsafepw New password: iwejfj2221 Confirm password: iwejfj2221






Post your Comments and Discuss RedHat EX447 exam with other Community members:

EX447 Discussions & Posts