CCNA: Cisco Certified Network Associate — Question 687
What is an Ansible inventory?
Answer options
- A. unit of Python code to be executed within Ansible
- B. file that defines the target devices upon which commands and tasks are executed
- C. device with Ansible installed that manages target devices
- D. collection of actions to perform on target devices, expressed in YAML format
Correct answer: B
Explanation
The correct answer is B because an Ansible inventory is specifically a file that lists the target devices for command execution. Option A describes a component of Ansible but not the inventory, C refers to the management aspect rather than the inventory itself, and D describes playbooks instead of inventories.