From f84a8e1956f2476dc087e96ab180b62561fda87f Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sat, 2 Apr 2022 08:36:20 +0100 Subject: [PATCH] Rename ansible-playbook to ansible This is part of the consolidation of Ansible schemas into a single file. We keep a symlink in order to allow consumers to get update their URIs. Related: #207 --- f/ansible-playbook.json | 970 +--------------------------------------- f/ansible.json | 969 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 970 insertions(+), 969 deletions(-) mode change 100644 => 120000 f/ansible-playbook.json create mode 100644 f/ansible.json diff --git a/f/ansible-playbook.json b/f/ansible-playbook.json deleted file mode 100644 index d0616637..00000000 --- a/f/ansible-playbook.json +++ /dev/null @@ -1,969 +0,0 @@ -{ - "$id": "https://raw.githubusercontent.com/ansible/schemas/main/f/ansible-playbook.json", - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "definitions": { - "TemplatedStringModel": { - "type": "string", - "pattern": "^\\{\\{.*\\}\\}$" - }, - "BlockModel": { - "properties": { - "always": { - "items": { - "anyOf": [ - { - "$ref": "#/definitions/TaskModel" - }, - { - "$ref": "#/definitions/BlockModel" - } - ] - }, - "title": "Always", - "type": "array" - }, - "any_errors_fatal": { - "title": "Any Errors Fatal", - "type": "boolean" - }, - "become": { - "title": "Become", - "type": "boolean" - }, - "become_exe": { - "title": "Become Exe", - "type": "string" - }, - "become_flags": { - "title": "Become Flags", - "type": "string" - }, - "become_method": { - "title": "Become Method", - "type": "string" - }, - "become_user": { - "title": "Become User", - "type": "string" - }, - "block": { - "items": { - "anyOf": [ - { - "$ref": "#/definitions/TaskModel" - }, - { - "$ref": "#/definitions/BlockModel" - } - ] - }, - "title": "Block", - "type": "array" - }, - "check_mode": { - "title": "Check Mode", - "type": "boolean" - }, - "collections": { - "items": { - "type": "string" - }, - "title": "Collections", - "type": "array" - }, - "connection": { - "title": "Connection", - "type": "string" - }, - "debugger": { - "title": "Debugger", - "type": "string" - }, - "delegate_facts": { - "title": "Delegate Facts", - "type": "boolean" - }, - "delegate_to": { - "title": "Delegate To", - "type": "string" - }, - "diff": { - "title": "Diff", - "type": "boolean" - }, - "environment": { - "additionalProperties": { - "type": "string" - }, - "title": "Environment", - "type": "object" - }, - "ignore_errors": { - "title": "Ignore Errors", - "type": "boolean" - }, - "ignore_unreachable": { - "title": "Ignore Unreachable", - "type": "boolean" - }, - "module_defaults": { - "title": "Module Defaults" - }, - "name": { - "title": "Name", - "type": "string" - }, - "no_log": { - "title": "No Log", - "anyOf": [ - { - "$ref": "#/definitions/TemplatedStringModel" - }, - { - "type": "boolean" - } - ] - }, - "port": { - "title": "Port", - "type": "integer" - }, - "remote_user": { - "title": "Remote User", - "type": "string" - }, - "rescue": { - "items": { - "anyOf": [ - { - "$ref": "#/definitions/TaskModel" - }, - { - "$ref": "#/definitions/BlockModel" - } - ] - }, - "title": "Rescue", - "type": "array" - }, - "run_once": { - "title": "Run Once", - "type": "boolean" - }, - "tags": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "Tags" - }, - "throttle": { - "title": "Throttle", - "type": "integer" - }, - "timeout": { - "title": "Timeout", - "type": "integer" - }, - "vars": { - "title": "Vars", - "type": "object" - }, - "when": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "When" - } - }, - "required": ["block"], - "title": "BlockModel", - "type": "object" - }, - "ImportPlaybookModel": { - "additionalProperties": false, - "properties": { - "import_playbook": { - "title": "Import Playbook", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "vars": { - "title": "Vars", - "type": "object" - } - }, - "required": ["import_playbook"], - "title": "ImportPlaybookModel", - "type": "object" - }, - "PlayModel": { - "additionalProperties": false, - "properties": { - "any_errors_fatal": { - "title": "Any Errors Fatal", - "type": "boolean" - }, - "become": { - "title": "Become", - "type": "boolean" - }, - "become_exe": { - "title": "Become Exe", - "type": "string" - }, - "become_flags": { - "title": "Become Flags", - "type": "string" - }, - "become_method": { - "title": "Become Method", - "type": "string" - }, - "become_user": { - "title": "Become User", - "type": "string" - }, - "check_mode": { - "title": "Check Mode", - "type": "boolean" - }, - "collections": { - "items": { - "type": "string" - }, - "title": "Collections", - "type": "array" - }, - "connection": { - "title": "Connection", - "type": "string" - }, - "debugger": { - "title": "Debugger", - "type": "string" - }, - "diff": { - "title": "Diff", - "type": "boolean" - }, - "environment": { - "additionalProperties": { - "type": "string" - }, - "title": "Environment", - "type": "object" - }, - "fact_path": { - "title": "Fact Path", - "type": "string" - }, - "force_handlers": { - "title": "Force Handlers", - "type": "boolean" - }, - "gather_facts": { - "title": "Gather Facts", - "type": "boolean" - }, - "gather_subset": { - "title": "Gather Subset", - "type": "boolean" - }, - "gather_timeout": { - "title": "Gather Timeout", - "type": "integer" - }, - "handlers": { - "$ref": "#/definitions/TasksListModel" - }, - "hosts": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "Hosts" - }, - "ignore_errors": { - "title": "Ignore Errors", - "type": "boolean" - }, - "ignore_unreachable": { - "title": "Ignore Unreachable", - "type": "boolean" - }, - "max_fail_percentage": { - "title": "Max Fail Percentage", - "type": "number" - }, - "module_defaults": { - "title": "Module Defaults" - }, - "name": { - "title": "Name", - "type": "string" - }, - "no_log": { - "title": "No Log", - "anyOf": [ - { - "$ref": "#/definitions/TemplatedStringModel" - }, - { - "type": "boolean" - } - ] - }, - "order": { - "enum": [ - "default", - "sorted", - "reverse_sorted", - "reverse_inventory", - "shuffle" - ], - "title": "Order", - "type": "string" - }, - "port": { - "title": "Port", - "type": "integer" - }, - "post_tasks": { - "$ref": "#/definitions/TasksListModel" - }, - "pre_tasks": { - "$ref": "#/definitions/TasksListModel" - }, - "remote_user": { - "title": "Remote User", - "type": "string" - }, - "roles": { - "items": { - "anyOf": [ - { - "$ref": "#/definitions/RoleModel" - }, - { - "type": "string" - } - ] - }, - "title": "Roles", - "type": "array" - }, - "run_once": { - "title": "Run Once", - "type": "boolean" - }, - "serial": { - "title": "Batch size", - "markdownDescription": "Integer, percentage or list of those. See [Setting the batch size with serial](https://docs.ansible.com/ansible/latest/user_guide/playbooks_strategies.html#setting-the-batch-size-with-serial)", - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string", - "pattern": "^\\d+\\.?\\d*%?$" - }, - { - "items": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string", - "pattern": "^\\d+\\.?\\d*%?$" - } - ] - }, - "type": "array" - } - ] - }, - "strategy": { - "title": "Strategy", - "type": "string" - }, - "tags": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "Tags" - }, - "tasks": { - "$ref": "#/definitions/TasksListModel" - }, - "throttle": { - "title": "Throttle", - "type": "integer" - }, - "timeout": { - "title": "Timeout", - "type": "integer" - }, - "vars": { - "title": "Vars", - "type": "object" - }, - "vars_files": { - "items": { - "type": "string" - }, - "title": "Vars Files", - "type": "array" - }, - "vars_prompt": { - "items": { - "$ref": "#/definitions/VarsPromptModel" - }, - "title": "Vars Prompt", - "type": "array" - }, - "when": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "When" - } - }, - "required": ["hosts"], - "title": "PlayModel", - "type": "object" - }, - "RoleModel": { - "properties": { - "any_errors_fatal": { - "title": "Any Errors Fatal", - "type": "boolean" - }, - "become": { - "title": "Become", - "type": "boolean" - }, - "become_exe": { - "title": "Become Exe", - "type": "string" - }, - "become_flags": { - "title": "Become Flags", - "type": "string" - }, - "become_method": { - "title": "Become Method", - "type": "string" - }, - "become_user": { - "title": "Become User", - "type": "string" - }, - "check_mode": { - "title": "Check Mode", - "type": "boolean" - }, - "collections": { - "items": { - "type": "string" - }, - "title": "Collections", - "type": "array" - }, - "connection": { - "title": "Connection", - "type": "string" - }, - "debugger": { - "title": "Debugger", - "type": "string" - }, - "delegate_to": { - "title": "Delegate To", - "type": "string" - }, - "diff": { - "title": "Diff", - "type": "boolean" - }, - "environment": { - "additionalProperties": { - "type": "string" - }, - "title": "Environment", - "type": "object" - }, - "ignore_errors": { - "title": "Ignore Errors", - "type": "boolean" - }, - "ignore_unreachable": { - "title": "Ignore Unreachable", - "type": "boolean" - }, - "module_defaults": { - "title": "Module Defaults" - }, - "name": { - "title": "Name", - "type": "string" - }, - "no_log": { - "title": "No Log", - "anyOf": [ - { - "$ref": "#/definitions/TemplatedStringModel" - }, - { - "type": "boolean" - } - ] - }, - "port": { - "title": "Port", - "type": "integer" - }, - "remote_user": { - "title": "Remote User", - "type": "string" - }, - "role": { - "title": "Role", - "type": "string" - }, - "run_once": { - "title": "Run Once", - "type": "boolean" - }, - "tags": { - "items": { - "type": "string" - }, - "title": "Tags", - "type": "array" - }, - "throttle": { - "title": "Throttle", - "type": "integer" - }, - "timeout": { - "title": "Timeout", - "type": "integer" - }, - "vars": { - "title": "Vars", - "type": "object" - }, - "when": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "When" - } - }, - "required": ["role"], - "title": "RoleModel", - "type": "object" - }, - "TaskModel": { - "additionalProperties": true, - "properties": { - "action": { - "title": "Action", - "type": "string" - }, - "any_errors_fatal": { - "title": "Any Errors Fatal", - "type": "boolean" - }, - "args": { - "title": "Args", - "type": "object" - }, - "async": { - "title": "Async", - "type": "integer" - }, - "become": { - "title": "Become", - "type": "boolean" - }, - "become_exe": { - "title": "Become Exe", - "type": "string" - }, - "become_flags": { - "title": "Become Flags", - "type": "string" - }, - "become_method": { - "title": "Become Method", - "type": "string" - }, - "become_user": { - "title": "Become User", - "type": "string" - }, - "changed_when": { - "title": "Changed When", - "type": "boolean" - }, - "check_mode": { - "title": "Check Mode", - "type": "boolean" - }, - "collections": { - "items": { - "type": "string" - }, - "title": "Collections", - "type": "array" - }, - "connection": { - "title": "Connection", - "type": "string" - }, - "debugger": { - "title": "Debugger", - "type": "string" - }, - "delay": { - "title": "Delay", - "type": "integer" - }, - "delegate_facts": { - "title": "Delegate Facts", - "type": "boolean" - }, - "delegate_to": { - "title": "Delegate To", - "type": "string" - }, - "diff": { - "title": "Diff", - "type": "boolean" - }, - "environment": { - "additionalProperties": { - "type": "string" - }, - "title": "Environment", - "type": "object" - }, - "failed_when": { - "title": "Failed When", - "type": ["string", "boolean"] - }, - "ignore_errors": { - "title": "Ignore Errors", - "type": "boolean" - }, - "ignore_unreachable": { - "title": "Ignore Unreachable", - "type": "boolean" - }, - "local_action": { - "title": "Local Action", - "type": ["string", "object"] - }, - "loop": { - "title": "Loop", - "type": ["string", "array"] - }, - "loop_control": { - "title": "Loop Control" - }, - "module_defaults": { - "title": "Module Defaults" - }, - "name": { - "title": "Name", - "type": "string" - }, - "no_log": { - "title": "No Log", - "anyOf": [ - { - "$ref": "#/definitions/TemplatedStringModel" - }, - { - "type": "boolean" - } - ] - }, - "notify": { - "title": "Notify", - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ] - }, - "poll": { - "title": "Poll", - "type": "integer" - }, - "port": { - "title": "Port", - "type": "integer" - }, - "register": { - "title": "Register", - "type": "string" - }, - "remote_user": { - "title": "Remote User", - "type": "string" - }, - "retries": { - "title": "Retries", - "type": "integer" - }, - "run_once": { - "title": "Run Once", - "type": "boolean" - }, - "tags": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "Tags" - }, - "throttle": { - "title": "Throttle", - "type": "integer" - }, - "timeout": { - "title": "Timeout", - "type": "integer" - }, - "until": { - "title": "Until", - "type": "string" - }, - "vars": { - "title": "Vars", - "type": "object" - }, - "when": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "When" - }, - "with_dict": { - "title": "With Dict" - }, - "with_fileglob": { - "title": "With Fileglob" - }, - "with_filetree": { - "title": "With Filetree" - }, - "with_first_found": { - "title": "With First Found" - }, - "with_flattened": { - "title": "With Flattened" - }, - "with_indexed_items": { - "title": "With Indexed Items" - }, - "with_ini": { - "title": "With Ini" - }, - "with_inventory_hostnames": { - "title": "With Inventory Hostnames" - }, - "with_items": { - "anyOf": [ - { - "type": "string" - }, - { - "items": { - "type": "string" - }, - "type": "array" - } - ], - "title": "With Items" - }, - "with_lines": { - "title": "With Lines" - }, - "with_random_choice": { - "title": "With Random Choice" - }, - "with_sequence": { - "title": "With Sequence" - }, - "with_subelements": { - "title": "With Subelements" - }, - "with_together": { - "title": "With Together" - } - }, - "title": "TaskModel", - "not": { - "required": ["block"] - }, - "type": "object" - }, - "TasksListModel": { - "$schema": "http://json-schema.org/draft-07/schema", - "examples": ["tasks/*.yml", "handlers/*.yml"], - "items": { - "anyOf": [ - { - "$ref": "#/definitions/TaskModel" - }, - { - "$ref": "#/definitions/BlockModel" - } - ] - }, - "title": "Ansible Tasks Schema", - "type": "array" - }, - "VarsPromptModel": { - "properties": { - "confirm": { - "title": "Confirm", - "type": "boolean" - }, - "encrypt": { - "enum": [ - "des_crypt", - "bsdi_crypt", - "bigcrypt", - "crypt16", - "md5_crypt", - "bcrypt", - "sha1_crypt", - "sun_md5_crypt", - "sha256_crypt", - "sha512_crypt", - "apr_md5_crypt", - "phpass", - "pbkdf2_digest", - "cta_pbkdf2_sha1", - "dlitz_pbkdf2_sha1", - "scram", - "bsd_nthash" - ], - "title": "Encrypt", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "private": { - "default": true, - "title": "Private", - "type": "boolean" - }, - "prompt": { - "title": "Prompt", - "type": "string" - }, - "salt_size": { - "default": 8, - "title": "Salt Size", - "type": "integer" - } - }, - "required": ["name", "prompt"], - "title": "VarsPromptModel", - "type": "object" - } - }, - "examples": ["playbooks/*.yml", "playbooks/*.yaml"], - "items": { - "anyOf": [ - { - "$ref": "#/definitions/ImportPlaybookModel" - }, - { - "$ref": "#/definitions/PlayModel" - } - ] - }, - "title": "Ansible Playbook Schema", - "type": "array" -} diff --git a/f/ansible-playbook.json b/f/ansible-playbook.json new file mode 120000 index 00000000..7618d9fa --- /dev/null +++ b/f/ansible-playbook.json @@ -0,0 +1 @@ +ansible.json \ No newline at end of file diff --git a/f/ansible.json b/f/ansible.json new file mode 100644 index 00000000..67df8823 --- /dev/null +++ b/f/ansible.json @@ -0,0 +1,969 @@ +{ + "$id": "https://raw.githubusercontent.com/ansible/schemas/main/f/ansible.json", + "$schema": "http://json-schema.org/draft-07/schema", + "additionalProperties": false, + "definitions": { + "TemplatedStringModel": { + "type": "string", + "pattern": "^\\{\\{.*\\}\\}$" + }, + "BlockModel": { + "properties": { + "always": { + "items": { + "anyOf": [ + { + "$ref": "#/definitions/TaskModel" + }, + { + "$ref": "#/definitions/BlockModel" + } + ] + }, + "title": "Always", + "type": "array" + }, + "any_errors_fatal": { + "title": "Any Errors Fatal", + "type": "boolean" + }, + "become": { + "title": "Become", + "type": "boolean" + }, + "become_exe": { + "title": "Become Exe", + "type": "string" + }, + "become_flags": { + "title": "Become Flags", + "type": "string" + }, + "become_method": { + "title": "Become Method", + "type": "string" + }, + "become_user": { + "title": "Become User", + "type": "string" + }, + "block": { + "items": { + "anyOf": [ + { + "$ref": "#/definitions/TaskModel" + }, + { + "$ref": "#/definitions/BlockModel" + } + ] + }, + "title": "Block", + "type": "array" + }, + "check_mode": { + "title": "Check Mode", + "type": "boolean" + }, + "collections": { + "items": { + "type": "string" + }, + "title": "Collections", + "type": "array" + }, + "connection": { + "title": "Connection", + "type": "string" + }, + "debugger": { + "title": "Debugger", + "type": "string" + }, + "delegate_facts": { + "title": "Delegate Facts", + "type": "boolean" + }, + "delegate_to": { + "title": "Delegate To", + "type": "string" + }, + "diff": { + "title": "Diff", + "type": "boolean" + }, + "environment": { + "additionalProperties": { + "type": "string" + }, + "title": "Environment", + "type": "object" + }, + "ignore_errors": { + "title": "Ignore Errors", + "type": "boolean" + }, + "ignore_unreachable": { + "title": "Ignore Unreachable", + "type": "boolean" + }, + "module_defaults": { + "title": "Module Defaults" + }, + "name": { + "title": "Name", + "type": "string" + }, + "no_log": { + "title": "No Log", + "anyOf": [ + { + "$ref": "#/definitions/TemplatedStringModel" + }, + { + "type": "boolean" + } + ] + }, + "port": { + "title": "Port", + "type": "integer" + }, + "remote_user": { + "title": "Remote User", + "type": "string" + }, + "rescue": { + "items": { + "anyOf": [ + { + "$ref": "#/definitions/TaskModel" + }, + { + "$ref": "#/definitions/BlockModel" + } + ] + }, + "title": "Rescue", + "type": "array" + }, + "run_once": { + "title": "Run Once", + "type": "boolean" + }, + "tags": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "Tags" + }, + "throttle": { + "title": "Throttle", + "type": "integer" + }, + "timeout": { + "title": "Timeout", + "type": "integer" + }, + "vars": { + "title": "Vars", + "type": "object" + }, + "when": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "When" + } + }, + "required": ["block"], + "title": "BlockModel", + "type": "object" + }, + "ImportPlaybookModel": { + "additionalProperties": false, + "properties": { + "import_playbook": { + "title": "Import Playbook", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "vars": { + "title": "Vars", + "type": "object" + } + }, + "required": ["import_playbook"], + "title": "ImportPlaybookModel", + "type": "object" + }, + "PlayModel": { + "additionalProperties": false, + "properties": { + "any_errors_fatal": { + "title": "Any Errors Fatal", + "type": "boolean" + }, + "become": { + "title": "Become", + "type": "boolean" + }, + "become_exe": { + "title": "Become Exe", + "type": "string" + }, + "become_flags": { + "title": "Become Flags", + "type": "string" + }, + "become_method": { + "title": "Become Method", + "type": "string" + }, + "become_user": { + "title": "Become User", + "type": "string" + }, + "check_mode": { + "title": "Check Mode", + "type": "boolean" + }, + "collections": { + "items": { + "type": "string" + }, + "title": "Collections", + "type": "array" + }, + "connection": { + "title": "Connection", + "type": "string" + }, + "debugger": { + "title": "Debugger", + "type": "string" + }, + "diff": { + "title": "Diff", + "type": "boolean" + }, + "environment": { + "additionalProperties": { + "type": "string" + }, + "title": "Environment", + "type": "object" + }, + "fact_path": { + "title": "Fact Path", + "type": "string" + }, + "force_handlers": { + "title": "Force Handlers", + "type": "boolean" + }, + "gather_facts": { + "title": "Gather Facts", + "type": "boolean" + }, + "gather_subset": { + "title": "Gather Subset", + "type": "boolean" + }, + "gather_timeout": { + "title": "Gather Timeout", + "type": "integer" + }, + "handlers": { + "$ref": "#/definitions/TasksListModel" + }, + "hosts": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "Hosts" + }, + "ignore_errors": { + "title": "Ignore Errors", + "type": "boolean" + }, + "ignore_unreachable": { + "title": "Ignore Unreachable", + "type": "boolean" + }, + "max_fail_percentage": { + "title": "Max Fail Percentage", + "type": "number" + }, + "module_defaults": { + "title": "Module Defaults" + }, + "name": { + "title": "Name", + "type": "string" + }, + "no_log": { + "title": "No Log", + "anyOf": [ + { + "$ref": "#/definitions/TemplatedStringModel" + }, + { + "type": "boolean" + } + ] + }, + "order": { + "enum": [ + "default", + "sorted", + "reverse_sorted", + "reverse_inventory", + "shuffle" + ], + "title": "Order", + "type": "string" + }, + "port": { + "title": "Port", + "type": "integer" + }, + "post_tasks": { + "$ref": "#/definitions/TasksListModel" + }, + "pre_tasks": { + "$ref": "#/definitions/TasksListModel" + }, + "remote_user": { + "title": "Remote User", + "type": "string" + }, + "roles": { + "items": { + "anyOf": [ + { + "$ref": "#/definitions/RoleModel" + }, + { + "type": "string" + } + ] + }, + "title": "Roles", + "type": "array" + }, + "run_once": { + "title": "Run Once", + "type": "boolean" + }, + "serial": { + "title": "Batch size", + "markdownDescription": "Integer, percentage or list of those. See [Setting the batch size with serial](https://docs.ansible.com/ansible/latest/user_guide/playbooks_strategies.html#setting-the-batch-size-with-serial)", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string", + "pattern": "^\\d+\\.?\\d*%?$" + }, + { + "items": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string", + "pattern": "^\\d+\\.?\\d*%?$" + } + ] + }, + "type": "array" + } + ] + }, + "strategy": { + "title": "Strategy", + "type": "string" + }, + "tags": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "Tags" + }, + "tasks": { + "$ref": "#/definitions/TasksListModel" + }, + "throttle": { + "title": "Throttle", + "type": "integer" + }, + "timeout": { + "title": "Timeout", + "type": "integer" + }, + "vars": { + "title": "Vars", + "type": "object" + }, + "vars_files": { + "items": { + "type": "string" + }, + "title": "Vars Files", + "type": "array" + }, + "vars_prompt": { + "items": { + "$ref": "#/definitions/VarsPromptModel" + }, + "title": "Vars Prompt", + "type": "array" + }, + "when": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "When" + } + }, + "required": ["hosts"], + "title": "PlayModel", + "type": "object" + }, + "RoleModel": { + "properties": { + "any_errors_fatal": { + "title": "Any Errors Fatal", + "type": "boolean" + }, + "become": { + "title": "Become", + "type": "boolean" + }, + "become_exe": { + "title": "Become Exe", + "type": "string" + }, + "become_flags": { + "title": "Become Flags", + "type": "string" + }, + "become_method": { + "title": "Become Method", + "type": "string" + }, + "become_user": { + "title": "Become User", + "type": "string" + }, + "check_mode": { + "title": "Check Mode", + "type": "boolean" + }, + "collections": { + "items": { + "type": "string" + }, + "title": "Collections", + "type": "array" + }, + "connection": { + "title": "Connection", + "type": "string" + }, + "debugger": { + "title": "Debugger", + "type": "string" + }, + "delegate_to": { + "title": "Delegate To", + "type": "string" + }, + "diff": { + "title": "Diff", + "type": "boolean" + }, + "environment": { + "additionalProperties": { + "type": "string" + }, + "title": "Environment", + "type": "object" + }, + "ignore_errors": { + "title": "Ignore Errors", + "type": "boolean" + }, + "ignore_unreachable": { + "title": "Ignore Unreachable", + "type": "boolean" + }, + "module_defaults": { + "title": "Module Defaults" + }, + "name": { + "title": "Name", + "type": "string" + }, + "no_log": { + "title": "No Log", + "anyOf": [ + { + "$ref": "#/definitions/TemplatedStringModel" + }, + { + "type": "boolean" + } + ] + }, + "port": { + "title": "Port", + "type": "integer" + }, + "remote_user": { + "title": "Remote User", + "type": "string" + }, + "role": { + "title": "Role", + "type": "string" + }, + "run_once": { + "title": "Run Once", + "type": "boolean" + }, + "tags": { + "items": { + "type": "string" + }, + "title": "Tags", + "type": "array" + }, + "throttle": { + "title": "Throttle", + "type": "integer" + }, + "timeout": { + "title": "Timeout", + "type": "integer" + }, + "vars": { + "title": "Vars", + "type": "object" + }, + "when": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "When" + } + }, + "required": ["role"], + "title": "RoleModel", + "type": "object" + }, + "TaskModel": { + "additionalProperties": true, + "properties": { + "action": { + "title": "Action", + "type": "string" + }, + "any_errors_fatal": { + "title": "Any Errors Fatal", + "type": "boolean" + }, + "args": { + "title": "Args", + "type": "object" + }, + "async": { + "title": "Async", + "type": "integer" + }, + "become": { + "title": "Become", + "type": "boolean" + }, + "become_exe": { + "title": "Become Exe", + "type": "string" + }, + "become_flags": { + "title": "Become Flags", + "type": "string" + }, + "become_method": { + "title": "Become Method", + "type": "string" + }, + "become_user": { + "title": "Become User", + "type": "string" + }, + "changed_when": { + "title": "Changed When", + "type": "boolean" + }, + "check_mode": { + "title": "Check Mode", + "type": "boolean" + }, + "collections": { + "items": { + "type": "string" + }, + "title": "Collections", + "type": "array" + }, + "connection": { + "title": "Connection", + "type": "string" + }, + "debugger": { + "title": "Debugger", + "type": "string" + }, + "delay": { + "title": "Delay", + "type": "integer" + }, + "delegate_facts": { + "title": "Delegate Facts", + "type": "boolean" + }, + "delegate_to": { + "title": "Delegate To", + "type": "string" + }, + "diff": { + "title": "Diff", + "type": "boolean" + }, + "environment": { + "additionalProperties": { + "type": "string" + }, + "title": "Environment", + "type": "object" + }, + "failed_when": { + "title": "Failed When", + "type": ["string", "boolean"] + }, + "ignore_errors": { + "title": "Ignore Errors", + "type": "boolean" + }, + "ignore_unreachable": { + "title": "Ignore Unreachable", + "type": "boolean" + }, + "local_action": { + "title": "Local Action", + "type": ["string", "object"] + }, + "loop": { + "title": "Loop", + "type": ["string", "array"] + }, + "loop_control": { + "title": "Loop Control" + }, + "module_defaults": { + "title": "Module Defaults" + }, + "name": { + "title": "Name", + "type": "string" + }, + "no_log": { + "title": "No Log", + "anyOf": [ + { + "$ref": "#/definitions/TemplatedStringModel" + }, + { + "type": "boolean" + } + ] + }, + "notify": { + "title": "Notify", + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ] + }, + "poll": { + "title": "Poll", + "type": "integer" + }, + "port": { + "title": "Port", + "type": "integer" + }, + "register": { + "title": "Register", + "type": "string" + }, + "remote_user": { + "title": "Remote User", + "type": "string" + }, + "retries": { + "title": "Retries", + "type": "integer" + }, + "run_once": { + "title": "Run Once", + "type": "boolean" + }, + "tags": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "Tags" + }, + "throttle": { + "title": "Throttle", + "type": "integer" + }, + "timeout": { + "title": "Timeout", + "type": "integer" + }, + "until": { + "title": "Until", + "type": "string" + }, + "vars": { + "title": "Vars", + "type": "object" + }, + "when": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "When" + }, + "with_dict": { + "title": "With Dict" + }, + "with_fileglob": { + "title": "With Fileglob" + }, + "with_filetree": { + "title": "With Filetree" + }, + "with_first_found": { + "title": "With First Found" + }, + "with_flattened": { + "title": "With Flattened" + }, + "with_indexed_items": { + "title": "With Indexed Items" + }, + "with_ini": { + "title": "With Ini" + }, + "with_inventory_hostnames": { + "title": "With Inventory Hostnames" + }, + "with_items": { + "anyOf": [ + { + "type": "string" + }, + { + "items": { + "type": "string" + }, + "type": "array" + } + ], + "title": "With Items" + }, + "with_lines": { + "title": "With Lines" + }, + "with_random_choice": { + "title": "With Random Choice" + }, + "with_sequence": { + "title": "With Sequence" + }, + "with_subelements": { + "title": "With Subelements" + }, + "with_together": { + "title": "With Together" + } + }, + "title": "TaskModel", + "not": { + "required": ["block"] + }, + "type": "object" + }, + "TasksListModel": { + "$schema": "http://json-schema.org/draft-07/schema", + "examples": ["tasks/*.yml", "handlers/*.yml"], + "items": { + "anyOf": [ + { + "$ref": "#/definitions/TaskModel" + }, + { + "$ref": "#/definitions/BlockModel" + } + ] + }, + "title": "Ansible Tasks Schema", + "type": "array" + }, + "VarsPromptModel": { + "properties": { + "confirm": { + "title": "Confirm", + "type": "boolean" + }, + "encrypt": { + "enum": [ + "des_crypt", + "bsdi_crypt", + "bigcrypt", + "crypt16", + "md5_crypt", + "bcrypt", + "sha1_crypt", + "sun_md5_crypt", + "sha256_crypt", + "sha512_crypt", + "apr_md5_crypt", + "phpass", + "pbkdf2_digest", + "cta_pbkdf2_sha1", + "dlitz_pbkdf2_sha1", + "scram", + "bsd_nthash" + ], + "title": "Encrypt", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "private": { + "default": true, + "title": "Private", + "type": "boolean" + }, + "prompt": { + "title": "Prompt", + "type": "string" + }, + "salt_size": { + "default": 8, + "title": "Salt Size", + "type": "integer" + } + }, + "required": ["name", "prompt"], + "title": "VarsPromptModel", + "type": "object" + } + }, + "examples": ["playbooks/*.yml", "playbooks/*.yaml"], + "items": { + "anyOf": [ + { + "$ref": "#/definitions/ImportPlaybookModel" + }, + { + "$ref": "#/definitions/PlayModel" + } + ] + }, + "title": "Ansible Playbook Schema", + "type": "array" +}