Ansible Playbooks · Schema

Inventory

An Ansible inventory containing groups and hosts targeted by playbook execution.

AnsibleAutomationConfiguration ManagementDevOpsInfrastructure as CodeOrchestrationPlaybooks

Properties

Name Type Description
id integer Unique identifier for the inventory.
name string Human-readable name for the inventory.
description string Description of the inventory and its purpose.
organization integer ID of the organization that owns this inventory.
kind string Inventory kind — empty for standard, smart, or constructed.
host_filter string Filter expression for smart inventories.
variables string Inventory-level variables as a JSON or YAML string.
total_hosts integer Total number of hosts in this inventory.
hosts_with_active_failures integer Number of hosts with active failures.
total_groups integer Total number of groups in this inventory.
has_inventory_sources boolean Whether this inventory has external inventory sources.
created string Timestamp when the inventory was created.
modified string Timestamp when the inventory was last modified.
View JSON Schema on GitHub

JSON Schema

ansible-playbooks-inventory-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ansible-playbooks/refs/heads/main/json-schema/ansible-playbooks-inventory-schema.json",
  "title": "Inventory",
  "description": "An Ansible inventory containing groups and hosts targeted by playbook execution.",
  "type": "object",
  "properties": {
    "id": {"type": "integer", "description": "Unique identifier for the inventory.", "example": 42},
    "name": {"type": "string", "description": "Human-readable name for the inventory.", "example": "Production Web Servers"},
    "description": {"type": "string", "description": "Description of the inventory and its purpose.", "example": "All production web server hosts across US-East region."},
    "organization": {"type": "integer", "description": "ID of the organization that owns this inventory.", "example": 1},
    "kind": {"type": "string", "enum": ["", "smart", "constructed"], "description": "Inventory kind — empty for standard, smart, or constructed.", "example": ""},
    "host_filter": {"type": "string", "description": "Filter expression for smart inventories.", "example": ""},
    "variables": {"type": "string", "description": "Inventory-level variables as a JSON or YAML string.", "example": "{\"ansible_user\": \"deploy\"}"},
    "total_hosts": {"type": "integer", "description": "Total number of hosts in this inventory.", "example": 24},
    "hosts_with_active_failures": {"type": "integer", "description": "Number of hosts with active failures.", "example": 0},
    "total_groups": {"type": "integer", "description": "Total number of groups in this inventory.", "example": 4},
    "has_inventory_sources": {"type": "boolean", "description": "Whether this inventory has external inventory sources.", "example": false},
    "created": {"type": "string", "format": "date-time", "description": "Timestamp when the inventory was created.", "example": "2026-01-01T00:00:00Z"},
    "modified": {"type": "string", "format": "date-time", "description": "Timestamp when the inventory was last modified.", "example": "2026-04-19T00:00:00Z"}
  },
  "required": ["id", "name", "organization"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/ansible-playbooks-inventory"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.