Ansible; run only against the intended target and bounded scope
ansible-inventory --list
ansible-inventory --list
Print the parsed inventory, including groups and host variables, as JSON.
Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.
inspect the responsible inventory source/plugin and one affected host variable chain before running a playbook
Privilege Not recordedState impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
resolved inventory hosts, groups and variables after inventory plugins/sources are evaluatedImportant persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
Exposes resolved inventory hosts, groups and variables after inventory plugins/sources are evaluated at the exact bounded observation/validation boundary restored from.
Does not by itself prove root cause, adjacent dependency health, policy correctness outside the selected scope, or end-to-end workload recovery.
inspect the responsible inventory source/plugin and one affected host variable chain before running a playbook
Command guidance
Execution context
Ansible; run only against the intended target and bounded scope
Use when
Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.
Important fields
resolved inventory hosts, groups and variables after inventory plugins/sources are evaluated
Common problems
Wrong target/context, stale state, missing provider/tool or treating one command as universal root-cause proof.
Operational impact
Read-only observation/validation intent; runtime cost still depends on scope and provider behavior.
Runtime cautions
Record target identity, runtime/tool version and timestamp separately if live output is captured as Evidence.
Technical context
Restores exact/ ownership only; this authored guidance is not observed production Evidence.
Variants · known-good and broken output
Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.
Known-good state patternKnown-good · Ansible
State pattern: expected object is present, identity/scope matches the controlled test, terminal state is healthy and relevant counters/results are internally consistent.healthy/terminal
ansible-inventory --list — Known-good. State pattern: expected object is present, identity/scope matches the controlled test, terminal state is healthy and relevant counters/results are internally consistent. Why: this command exposes Ansible execution and target state state. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: Tie the recap to the intended host/task, read the target file/package/service/property independently, confirm any handler/reload took effect, then run the original workload test. Then repeat the original workload/request and verify the return path.
Exposes resolved inventory hosts, groups and variables after inventory plugins/sources are evaluated at the exact bounded observation/validation boundary restored from.
Does not prove: Does not by itself prove root cause, adjacent dependency health, policy correctness outside the selected scope, or end-to-end workload recovery.inspect the responsible inventory source/plugin and one affected host variable chain before running a playbook
Transitional state patternTransitional · Ansible
State pattern: object exists but negotiation, convergence, reconciliation, retry or recovery is still progressing; timers/counters or stage markers should change between samples.in-progress
ansible-inventory --list — Transitional. State pattern: object exists but negotiation, convergence, reconciliation, retry or recovery is still progressing; timers/counters or stage markers should change between samples. Why: this command exposes Ansible execution and target state state. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: Tie the recap to the intended host/task, read the target file/package/service/property independently, confirm any handler/reload took effect, then run the original workload test. Then repeat the original workload/request and verify the return path.
Exposes resolved inventory hosts, groups and variables after inventory plugins/sources are evaluated at the exact bounded observation/validation boundary restored from.
Does not prove: Does not by itself prove root cause, adjacent dependency health, policy correctness outside the selected scope, or end-to-end workload recovery.inspect the responsible inventory source/plugin and one affected host variable chain before running a playbook
Broken state patternBroken · Ansible
State pattern: expected object is absent, denied, unresolved, failed or divergent from the controlled test; error/result fields identify the directly observed boundary, not automatic root cause.failed/degraded
ansible-inventory --list — Broken. State pattern: expected object is absent, denied, unresolved, failed or divergent from the controlled test; error/result fields identify the directly observed boundary, not automatic root cause. Why: this command exposes Ansible execution and target state state. What it proves: only the selected object/context and fields directly returned here. What it does not prove: root cause, adjacent dependency health or end-to-end workload success. Next check: Tie the recap to the intended host/task, read the target file/package/service/property independently, confirm any handler/reload took effect, then run the original workload test. Then repeat the original workload/request and verify the return path.
Exposes resolved inventory hosts, groups and variables after inventory plugins/sources are evaluated at the exact bounded observation/validation boundary restored from.
Does not prove: Does not by itself prove root cause, adjacent dependency health, policy correctness outside the selected scope, or end-to-end workload recovery.inspect the responsible inventory source/plugin and one affected host variable chain before running a playbook
Illustrative healthy Ansible / Network AutomationKnown-good · Cross-platform / API
{"all":{"children":["routers","switches"]},"routers":{"hosts":["r1","r2"]}}The expected local object and state are visible for the controlled example.
Illustrative output only; syntax and fields vary. Continue through the documented evidence chain.
Exposes resolved inventory hosts, groups and variables after inventory plugins/sources are evaluated at the exact bounded observation/validation boundary restored from.
Does not prove: Does not by itself prove root cause, adjacent dependency health, policy correctness outside the selected scope, or end-to-end workload recovery.inspect the responsible inventory source/plugin and one affected host variable chain before running a playbook