Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.example.comWhich of the following files does Ansible check for variables related to that inventory? (Choose all that apply.)
Answer(s): B,D
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.
Which flags must be accepted as input for a dynamic inventory script?
Answer(s): B
A dynamic inventory must return data in what format?
Answer(s): A
Dynamic inventories must return JSON output.
Which is the default inventory file used by Ansible?
Answer(s): D
Ansbile refers to /etc/ansible/hosts as the default inventory.
Post your Comments and Discuss RedHat EX407 exam with other Community members: