summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/schemas/inventory.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
commitd964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2 (patch)
tree794bc3738a00b5e599f06d1f2f6d79048d87ff8e /src/ansiblelint/schemas/inventory.json
parentInitial commit. (diff)
downloadansible-lint-d964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2.tar.xz
ansible-lint-d964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2.zip
Adding upstream version 6.13.1.upstream/6.13.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/ansiblelint/schemas/inventory.json')
-rw-r--r--src/ansiblelint/schemas/inventory.json66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/ansiblelint/schemas/inventory.json b/src/ansiblelint/schemas/inventory.json
new file mode 100644
index 0000000..2c665e2
--- /dev/null
+++ b/src/ansiblelint/schemas/inventory.json
@@ -0,0 +1,66 @@
+{
+ "$defs": {
+ "group": {
+ "properties": {
+ "children": {
+ "patternProperties": {
+ "[a-zA-Z-_0-9]": {
+ "$ref": "#/$defs/group"
+ }
+ }
+ },
+ "hosts": {
+ "patternProperties": {
+ "[a-zA-Z.-_0-9]": {
+ "type": ["object", "null"]
+ }
+ },
+ "type": ["object", "string"]
+ },
+ "vars": {
+ "type": "object"
+ }
+ },
+ "type": ["object", "null"]
+ },
+ "special-group": {
+ "additionalProperties": false,
+ "properties": {
+ "children": {
+ "type": ["object", "null"]
+ },
+ "groups": {
+ "type": ["object", "null"]
+ },
+ "hosts": {
+ "type": ["object", "null"]
+ },
+ "vars": {
+ "type": ["object", "null"]
+ }
+ },
+ "type": "object"
+ }
+ },
+ "$id": "https://raw.githubusercontent.com/ansible-lint/main/src/ansiblelint/schemas/ansible-inventory.json",
+ "$schema": "http://json-schema.org/draft-07/schema",
+ "additionalProperties": true,
+ "description": "Ansible Inventory Schema",
+ "examples": [
+ "inventory.yaml",
+ "inventory.yml",
+ "inventory/*.yml",
+ "inventory/*.yaml"
+ ],
+ "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/ansible/latest/inventory_guide/intro_inventory.html)",
+ "properties": {
+ "all": {
+ "$ref": "#/$defs/special-group"
+ },
+ "ungrouped": {
+ "$ref": "#/$defs/group"
+ }
+ },
+ "title": "Ansible Inventory Schema",
+ "type": "object"
+}