Use this when inventory comes from a source of truth.
Source of Truth · Inventory
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.
1. The source of truth holds intended inventory.
2. Automation reads from it.
3. Discovery reconciles reality.
4. Fix SoT data at the source.
5. One SoT per data type.
SoT → inventory → automation; discovery → reconcile
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 Common mistakes Narrow the fault
- Several systems claiming to be authoritative for the same data.
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.
- One authoritative place for host data.
- Avoid separate lists drifting apart.
- Sync regularly.
- SoT (NetBox/Nautobot/CMDB) as inventory source — authority
- Sync direction (SoT → automation) — flow
- Discrepancy reports — quality
ReferenceWhy it matters1 section · depth on demand
What it is
A source of truth is the authoritative system for intended state (NetBox, Nautobot, Git). Automation reads from it instead of from devices.
ReferenceImportant terms & boundaries1 section · depth on demand
How it works
The inventory plugin queries the source of truth (e.g. NetBox) for devices with status, role, platform and primary IP, and builds groups from those attributes, so automation always targets what the SoT says should exist.
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 Inventory > Source of Truth. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html · confidence 94%