Professional Documents
Culture Documents
http://www.passsureexam.com
Best Exam Questions & Valid Exam Torrent & Pass for Sure
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
Exam : EX407
Vendor : RedHat
Version : DEMO
Get Latest & Valid ex407 Exam's Question and Answers1from Passsureexam.com. 1
https://www.passsureexam.com/EX407-pass4sure-exam-dumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
NO.1 Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers]
db1.example.com Which of the following files does Ansible check for variables related to that
inventory? (Choose all that apply.)
A. /home/user/ansible/host_vars/db1
B. /home/user/ansible/group_vars/dbservers
C. /home/user/ansible/host_vars/db1.example.com
D. /home/user/ansible/dbservers
Answer: B,C
Explanation:
Ansible will check in /home/user/ansible/host_vars to find files named after hosts defined in the
inventory. Ansible will check this file because there is a group defined in the inventory as dbservers.
NO.2 What file should you look at first when installing tower?
A. /etc/tower/settings.py
B. setup.sh
C. README.md
D. inventory
Answer: C
NO.3 Where can you find documentation on Ansible modules? (Choose all that apply.)
A. Using the ansible-doc command.
B. Ansible online documentation.
C. The Ansible-Module man page.
D. The Ansible man page.
Answer: A,B
Explanation:
The ansible-doc command is designed to provide module documentation. Module documentation
may be found online.
NO.4 By default, how many times can a role be applied during a play?
A. As many times as necessary, presuming the 'single_run' attribute is set to false.
B. Once, no matter the parameters provided.
C. Once, presuming it is only applied with a single set of parameters.
D. As many times as necessary, no matter the parameters.
Answer: C
Explanation:
A role given only a single set of parameters will only be applied by Ansible one time in a play.
Get Latest & Valid ex407 Exam's Question and Answers2from Passsureexam.com. 2
https://www.passsureexam.com/EX407-pass4sure-exam-dumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
D. The defaults directory is where you define which plays of a role will be used by default.
Answer: C
Explanation:
Variables defined within defaults are given the lowest precedence and are only used when no other
value is provided.
NO.6 What is the primary difference between the shell and command module?
A. The shell module is for executing shell commands, and the command module is for Ansible
internal commands.
B. The shell module sets a default shell whereas the command module executes a shell command.
C. The shell module sets up a shell environment and the command module only runs the provided
command.
D. There is no difference.
Answer: C
NO.8 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:
See the Explanation for complete Solution below.
Explanation
/home/sandy/ansible/apache.yml
Get Latest & Valid ex407 Exam's Question and Answers3from Passsureexam.com. 3
https://www.passsureexam.com/EX407-pass4sure-exam-dumps.html
Instant Download - Best Exam Practice Material - 100% Money Back Guarantee!
IT Certification Guaranteed, The Easy Way!
/home/sandy/ansible/roles/sample-apache/tasks/main.yml
Get Latest & Valid ex407 Exam's Question and Answers4from Passsureexam.com. 4
https://www.passsureexam.com/EX407-pass4sure-exam-dumps.html