Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Inventory

Direct answer

Inventory is the list of systems automation manages, with groups and variables such as addresses, roles and platforms, kept statically in files or generated dynamically from a CMDB, cloud or NetBox.

When to use this

Use this when defining which systems automation manages and with which variables.

First 30 seconds

1. Inventory drives automation targets and variables.

2. Generate from source of truth.

3. Group logically.

4. Validate.

5. Keep secrets out.

Operational verification

SoT → inventory → automation

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation design and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformautomation design and operations · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when defining which systems automation manages and with which variables.
What next?3 suggested next steps
Child topics (this level)10
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 duplicate labels, stale inventory, conflicting authority, broad filters, race between read and write, orphaned relationships and automation acting on data not yet reconciled, choosing the cases most relevant to authoritative object selection, revision/freshness, relationship traversal and preventing automation from using stale or duplicate inventory records.

Evidence references

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.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Inventory Fundamentals

Inventory fundamentals: every host the automation manages is listed once, grouped meaningfully, with connection details and variables, ideally generated from a source of truth rather than maintained by hand.

Subtopic Hosts

Hosts in an inventory are individual managed systems, each with a name, connection address and host variables such as platform, credentials reference or role.

Subtopic Groups

Inventory groups organize hosts by role, environment, site or platform, such as webservers or prod, so automation targets and variables apply to many hosts at once.

Subtopic Variables

Inventory variables are values attached to hosts or groups, such as ansible_host or ntp_servers, often kept in host_vars and group_vars directories, with host values overriding group values.

Subtopic Static Inventory

A static inventory is a hand-written file listing hosts and groups, such as an Ansible INI or YAML inventory.

Subtopic Dynamic Inventory

Dynamic inventory generates the host list at runtime from a source like AWS, vSphere, Proxmox or NetBox using plugins, so automation always targets what actually exists.

Subtopic Source of Truth

An inventory sourced from a source of truth such as NetBox or a CMDB keeps host lists, groups and variables in one authoritative place, avoiding inventories that drift apart.

Subtopic CMDB

A CMDB (configuration management database) stores configuration items and their relationships, such as servers, applications and owners.

Subtopic Discovery

Discovery automatically finds systems and their details by scanning networks, querying cloud APIs, hypervisors or SNMP and LLDP, feeding inventories and highlighting unknown devices.

Subtopic Inventory Validation

Inventory validation checks that hosts are reachable, names and addresses are unique, required variables are set and groups are correct before automation runs against them.

Key points
  • Generate inventory from a source of truth when possible.
  • Groups and variables tailor behaviour.
  • Unreachable hosts must be visible, not silently skipped.
Key checks
  • ansible-inventory --graph — groups
  • Inventory source (SoT) — authority
  • Validation (all hosts reachable, required vars) — quality
ReferenceWhy it matters1 section · depth on demand

In depth

Inventory is the foundation of automation: before anything can be configured, monitored or audited, automation needs to know what exists, where it is and how to reach it. This group covers how inventories are structured (hosts and groups), where they come from (static files, dynamic sources, CMDB) and how they stay accurate.

QuestionInventory answers
Which devices are at site X?Group/site membership
How do I connect?Address, platform, credentials reference
What role does it have?Role/function attributes
Who owns it?Ownership, contact

An inventory is only as useful as its accuracy, so the best inventories are generated from an authoritative source and checked automatically against what is actually on the network.

ReferenceImportant terms & boundaries2 sections · depth on demand

Platform, version and operating-envelope scope

Ansible collection/module behavior depends on ansible-core and collection versions plus target OS/provider.

Mechanics

Follow the chain of components authoritative input → API/database validation → object persistence → query/filter → automation consumer → target action → reconciliation/read-back and record which layer currently owns truth.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docautomation design and operations current

Authoritative/upstream documentation reviewed for bounded claims in 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%
Depth when you need it

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.

Confirmation

Confirm action

Continue?