200-301 · Question #1237
What is an Ansible inventory?
The correct answer is B. file that defines the target devices upon which commands and tasks are executed. An Ansible inventory is a file (or set of files) that lists the target systems (hosts) Ansible manages. - Hostnames or IP addresses of devices - Groupings of devices (e.g., [web_servers], [db_servers]) - Variables specific to hosts or groups - Connection methods (SSH, WinRM, etc.
Question
What is an Ansible inventory?
Options
- Aunit of Python code to be executed within Ansible
- Bfile that defines the target devices upon which commands and tasks are executed
- Cdevice with Ansible installed that manages target devices
- Dcollection of actions to perform on target devices, expressed in YAML format
How the community answered
(16 responses)- B88% (14)
- C6% (1)
- D6% (1)
Explanation
An Ansible inventory is a file (or set of files) that lists the target systems (hosts) Ansible manages. - Hostnames or IP addresses of devices - Groupings of devices (e.g., [web_servers], [db_servers]) - Variables specific to hosts or groups - Connection methods (SSH, WinRM, etc.) Inventories can be: - Static (defined in .ini or .yml files) - Dynamic (generated from cloud providers, CMDBs, etc.)
Topics
Community Discussion
No community discussion yet for this question.