Debian Codegraph @

src/ansiblelint/schemas/inventory.json

raw
1 {
2 "$defs": {
3 "group": {
4 "properties": {
5 "children": {
6 "patternProperties": {
7 "[a-zA-Z-_0-9]": {
8 "$ref": "#/$defs/group"
9 }
10 }
11 },
12 "hosts": {
13 "patternProperties": {
14 "[a-zA-Z.-_0-9]": {
15 "type": ["object", "null"]
16 }
17 },
18 "type": ["object", "string"]
19 },
20 "vars": {
21 "type": "object"
22 }
23 },
24 "type": ["object", "null"]
25 },
26 "special-group": {
27 "additionalProperties": false,
28 "properties": {
29 "children": {
30 "type": ["object", "null"]
31 },
32 "groups": {
33 "type": ["object", "null"]
34 },
35 "hosts": {
36 "type": ["object", "null"]
37 },
38 "vars": {
39 "type": ["object", "null"]
40 }
41 },
42 "type": "object"
43 }
44 },
45 "$id": "https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json",
46 "$schema": "http://json-schema.org/draft-07/schema",
47 "additionalProperties": true,
48 "description": "See https://docs.ansible.com/projects/ansible/latest/inventory_guide/intro_inventory.html",
49 "examples": [
50 "inventory.yaml",
51 "inventory.yml",
52 "inventory/*.yml",
53 "inventory/*.yaml"
54 ],
55 "markdownDescription": "All keys at top levels are groups with `all` and `ungrouped` having a special meaning.\n\nSee [How to build your inventory](https://docs.ansible.com/projects/ansible/latest/inventory_guide/intro_inventory.html)",
56 "properties": {
57 "all": {
58 "$ref": "#/$defs/special-group"
59 },
60 "ungrouped": {
61 "$ref": "#/$defs/group"
62 }
63 },
64 "title": "Ansible Inventory Schema",
65 "type": "object"
66 }