Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Fix task and playbook detection in schema #370

Merged
merged 3 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions f/ansible-playbook.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@
"$ref": "#/$defs/templated-integer",
"title": "Timeout"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down Expand Up @@ -504,6 +508,10 @@
"$ref": "#/$defs/templated-integer",
"title": "Timeout"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down Expand Up @@ -635,6 +643,10 @@
"$ref": "#/$defs/templated-integer",
"title": "Timeout"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down Expand Up @@ -674,6 +686,27 @@
]
}
},
{
"not": {
"required": [
"hosts"
]
}
},
{
"not": {
"required": [
"tasks"
]
}
},
{
"not": {
"required": [
"import_playbook"
]
}
},
{
"not": {
"required": [
Expand Down Expand Up @@ -870,6 +903,10 @@
"$ref": "#/$defs/complex_conditional",
"title": "Until"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down
29 changes: 29 additions & 0 deletions f/ansible-tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@
"$ref": "#/$defs/templated-integer",
"title": "Timeout"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down Expand Up @@ -248,6 +252,27 @@
]
}
},
{
"not": {
"required": [
"hosts"
]
}
},
{
"not": {
"required": [
"tasks"
]
}
},
{
"not": {
"required": [
"import_playbook"
]
}
},
{
"not": {
"required": [
Expand Down Expand Up @@ -444,6 +469,10 @@
"$ref": "#/$defs/complex_conditional",
"title": "Until"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down
31 changes: 31 additions & 0 deletions f/ansible.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@
"$ref": "#/$defs/templated-integer",
"title": "Timeout"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down Expand Up @@ -489,6 +493,10 @@
"$ref": "#/$defs/templated-integer",
"title": "Timeout"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down Expand Up @@ -618,6 +626,10 @@
"$ref": "#/$defs/templated-integer",
"title": "Timeout"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down Expand Up @@ -668,6 +680,21 @@
"required": ["block"]
}
},
{
"not": {
"required": ["hosts"]
}
},
{
"not": {
"required": ["tasks"]
}
},
{
"not": {
"required": ["import_playbook"]
}
},
{
"not": {
"required": ["with_filetree"]
Expand Down Expand Up @@ -852,6 +879,10 @@
"$ref": "#/$defs/complex_conditional",
"title": "Until"
},
"user": {
"title": "Remote User",
"type": "string"
},
"vars": {
"title": "Vars",
"type": "object"
Expand Down