Simple definition
An Ansible inventory defines managed hosts, groups, connection parameters, and variables for automation runs.
Purpose and use
An Ansible inventory identifies managed hosts and groups together with connection information.
How does it work?
It can be static or generated dynamically. Variables and group membership contribute to each host's effective configuration.
Example and verification
Before an operation, inspect the resolved inventory and ensure selection patterns do not include systems from another environment.
Points to watch
A group name is not a security boundary. Inherited variables or stale dynamic data can alter actual scope.
In short
Inventory is a deployment-control component that should be maintained and reviewed alongside task code.