Use this when the automation platform needs to know its targets.
Inventory · Automation Architecture
The inventory in automation architecture is the component that tells the platform which targets exist, how to reach them and which groups and variables apply.
1. Inventory lists targets and their variables.
2. Prefer dynamic inventory from a source of truth.
3. Group by role, site, environment.
4. Keep variables out of hosts files where possible.
5. Validate.
source of truth → inventory → automation targets
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as implicit defaults, hidden dependencies, duplicate dispatch, worker drift, timeout without cancellation, retries against non-idempotent operations and confusing control-plane completion with target convergence, choosing the cases most relevant to authoritative object selection, revision/freshness, relationship traversal and preventing automation from using stale or duplicate inventory records.
Step 2 Common mistakes Narrow the fault
- Inventory not tied to a source of truth.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Inventory lists hosts, groups and variables.
- Generated from a source of truth ideally.
- Stale inventory causes failures.
ansible-inventory --graph— inventory groupsansible-inventory --list | jq '._meta.hostvars | length'— host count- Dynamic inventory source (NetBox/cloud) — source of truth
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
The inventory in an automation architecture is the list of systems automation can act on, with the attributes needed to reach and group them: addresses, platforms, sites, roles, credentials references. Every run starts by selecting targets from it, so an inaccurate inventory means automation misses systems or hits the wrong ones.
| Source | Notes |
|---|---|
| Static file (YAML/INI) | Simple, version-controlled; drifts from reality |
| Dynamic (NetBox, vCenter, cloud APIs) | Always current; depends on source quality |
| CMDB | Broad scope; often less precise |
Derive inventory from a source of truth where possible, group by attributes (site, role, platform) rather than by hand-maintained lists, and validate it: unreachable hosts and duplicates in the inventory are early warnings of data problems.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Architecture > Inventory. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/enable-automation · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For authoritative object selection, revision/freshness, relationship traversal and preventing automation from using stale or duplicate inventory records, prefer typed fields and stable IDs over human presentation text.