Rate this post

Enhance Your Career With Available Preparation Guide for EX407 Exam

Get Special Discount Offer of EX407 Certification Exam Sample Questions and Answers

NO.24 Which of the following are sub commands of the ansible-galaxy command? (Choose all that apply.)

 
 
 
 

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

NO.26 State whether the following statement is true or false.
There is a 10 user trial available.

 
 

NO.27 State whether the following statement is true or false.
The following is allowed in a playbook.


tasks:
yaml:
name=yum.
– hosts: local

 
 

NO.28 Create a file called requirements.yml in /home/sandy/ansible/roles a file called role.yml in /home/sandy/ansible/.
The haproxy-role should be used on the proxy host. And when you curl http://node3.example.com it should display “Welcome to node4.example.com” and when you curl again “Welcome to node5.example.com” The php-role should be used on the prod host.

NO.29 What keyword stores a command’s output into a variable?

 
 
 
 

NO.30 Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:
* Uses the timesync RHEL system role.
* Sets the ntp server to 0.uk.pool.ntp.org
* Sets the timezone to UTC

NO.31 Create a file called adhoc.sh in /home/sandy/ansible which will use adhoc commands to set up a new 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.

NO.32 Install and configure ansible
User bob has been created on your control node. Give him the appropriate permissions on the control node. Install the necessary packages to run ansible on the control node.
Create a configuration file /home/bob/ansible/ansible.cfg to meet the following requirements:
* The roles path should include /home/bob/ansible/roles, as well as any other path that may be required for the course of the sample exam.
* The inventory file path is /home/bob/ansible/inventory.
* Ansible should be able to manage 10 hosts at a single time.
* Ansible should connect to all managed nodes using the bob user.
Create an inventory file for the following five nodes:
nodel.example.com
node2.example.com
node3.example.com
node4.example.com
node5.example.com
Configure these nodes to be in an inventory file where node1 is a member of group dev. nodc2 is a member of group test, nodc3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.

NO.33 Create 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.

NO.34 Create a file calledadhoc.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 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.

NO.35 Which command is the correct way to run the playbook /home/ansible/Buildwww.yml using the inventory file /home/ansible/inventory, assuming your present working directory is /home/ansible?

 
 
 
 

NO.36 Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job ‘datejob’

NO.37 What Ansible variable allows access to internal Ansible data?

 
 
 
 

NO.38 Create an empty encrypted file called and set the password to
notsafepw. Rekey the password to

NO.39 Which of these are valid as the first thing in a playbook? (Choose all that apply.)

 
 
 
 

Updated EX407 Dumps Questions Are Available For Passing RedHat Exam: https://www.2pass4sure.com/Red-Hat-Certified-Specialist/EX407-actual-exam-braindumps.html

         

Related Links: www.stes.tyc.edu.tw myportal.utt.edu.tt www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw myportal.utt.edu.tt