200-901 · Question #650
What is a capability of Ansible host files?
The correct answer is A. constructs an inventory of resources under management. Ansible host files (also called inventory files) define and organize the list of managed hosts and groups of hosts - they construct the inventory of resources under Ansible's management. Answer B describes playbooks or role dependencies. Answer C describes Ansible modules (writte
Question
What is a capability of Ansible host files?
Options
- Aconstructs an inventory of resources under management
- Bpoints to each other or to lower-level roles
- Ccontains Python code for user modules
- Dspecifies the values of variables that refer to hosts
How the community answered
(20 responses)- A85% (17)
- B10% (2)
- C5% (1)
Explanation
Ansible host files (also called inventory files) define and organize the list of managed hosts and groups of hosts - they construct the inventory of resources under Ansible's management. Answer B describes playbooks or role dependencies. Answer C describes Ansible modules (written in Python). Answer D describes variable files (group_vars or host_vars), not the inventory/host file itself, which primarily lists hosts and groups rather than variable values.
Topics
Community Discussion
No community discussion yet for this question.