Question
Which of the following Ansible components contains a list of hosts and host groups?
- A. Fact
- B. Inventory Correct
- C. Playbook
- D. Collection
Explanation
An Ansible inventory lists the managed nodes and organizes them into groups that playbooks and ad hoc commands target. Facts are data gathered from the hosts, a playbook defines the plays and tasks to run, and a collection is a distribution format for roles, modules and plugins.