Files
scaffold/tools/ansible-playbook.json
T
ZencacheandClaude Opus 4.6 bd9a01e743 v2.7.1: hardening pass — BOM stripping, QApp guard, deepcopy, flag strip
Four targeted fixes from a full deep code audit with Copilot:

- Strip leading UTF-8 BOM in load_tool before JSON parsing
- Guard _make_arrow_icons against missing QApplication
- normalize_tool returns a deep copy; all call sites updated
- Strip trailing whitespace in _check_duplicate_flags

Also: move Ansible schemas from tools/Ansible/ to tools/ for picker
visibility, update README with documentation quality guidance and
Security section.

All 5 test suites pass: 1,034/1,034 assertions, 0 failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 09:47:27 -04:00

886 lines
23 KiB
JSON

{
"_format": "scaffold_schema",
"tool": "Ansible Playbook",
"binary": "ansible-playbook",
"description": "Run Ansible playbooks to execute tasks on targeted hosts.",
"elevated": null,
"subcommands": null,
"_coverage": "full",
"arguments": [
{
"name": "Inventory",
"flag": "--inventory",
"short_flag": "-i",
"type": "string",
"description": "Specify inventory host path or comma-separated host list (repeatable)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"/etc/ansible/hosts",
"inventory/production",
"inventory/staging",
"localhost,"
],
"display_group": "Inventory & Targeting",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Limit",
"flag": "--limit",
"short_flag": "-l",
"type": "string",
"description": "Further limit selected hosts to an additional pattern (prefix with ~ for regex)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"webservers",
"~web[0-9]+",
"host1,host2",
"datacenter1:&staging"
],
"display_group": "Inventory & Targeting",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "List Hosts",
"flag": "--list-hosts",
"short_flag": null,
"type": "boolean",
"description": "Output a list of matching hosts; does not execute anything",
"required": false,
"default": null,
"choices": null,
"group": "dry_run_mode",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Inventory & Targeting",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Flush Cache",
"flag": "--flush-cache",
"short_flag": null,
"type": "boolean",
"description": "Clear the fact cache for every host in inventory",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Inventory & Targeting",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Remote User",
"flag": "--user",
"short_flag": "-u",
"type": "string",
"description": "Connect as this user via SSH",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"root",
"ansible",
"deploy",
"ubuntu",
"ec2-user"
],
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Connection Type",
"flag": "--connection",
"short_flag": "-c",
"type": "string",
"description": "Connection type to use",
"required": false,
"default": "ssh",
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"ssh",
"local",
"paramiko",
"winrm",
"docker",
"network_cli"
],
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Connection Timeout",
"flag": "--timeout",
"short_flag": "-T",
"type": "integer",
"description": "Override the connection timeout in seconds",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": 1,
"max": 3600,
"deprecated": null,
"dangerous": false
},
{
"name": "Private Key File",
"flag": "--private-key",
"short_flag": null,
"type": "file",
"description": "Use this file to authenticate the SSH connection",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Connection Password",
"flag": "--ask-pass",
"short_flag": "-k",
"type": "boolean",
"description": "Prompt for the SSH connection password",
"required": false,
"default": null,
"choices": null,
"group": "connection_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Connection Password File",
"flag": "--connection-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the connection password",
"required": false,
"default": null,
"choices": null,
"group": "connection_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Connection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSH Common Args",
"flag": "--ssh-common-args",
"short_flag": null,
"type": "string",
"description": "Specify common arguments to pass to sftp/scp/ssh (e.g. ProxyCommand)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"-o ProxyCommand=\"ssh -W %h:%p jumphost\"",
"-o StrictHostKeyChecking=no"
],
"display_group": "SSH Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SSH Extra Args",
"flag": "--ssh-extra-args",
"short_flag": null,
"type": "string",
"description": "Specify extra arguments to pass to ssh only (e.g. -R)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSH Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SCP Extra Args",
"flag": "--scp-extra-args",
"short_flag": null,
"type": "string",
"description": "Specify extra arguments to pass to scp only",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSH Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "SFTP Extra Args",
"flag": "--sftp-extra-args",
"short_flag": null,
"type": "string",
"description": "Specify extra arguments to pass to sftp only",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "SSH Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Become",
"flag": "--become",
"short_flag": "-b",
"type": "boolean",
"description": "Run operations with privilege escalation (does not imply password prompting)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Privilege Escalation",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Become Method",
"flag": "--become-method",
"short_flag": null,
"type": "string",
"description": "Privilege escalation method to use",
"required": false,
"default": "sudo",
"choices": null,
"group": null,
"depends_on": "--become",
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"sudo",
"su",
"pbrun",
"pfexec",
"doas",
"dzdo",
"ksu",
"runas"
],
"display_group": "Privilege Escalation",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Become User",
"flag": "--become-user",
"short_flag": null,
"type": "string",
"description": "Run operations as this user after privilege escalation",
"required": false,
"default": "root",
"choices": null,
"group": null,
"depends_on": "--become",
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"root",
"postgres",
"nginx",
"www-data"
],
"display_group": "Privilege Escalation",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Become Password",
"flag": "--ask-become-pass",
"short_flag": "-K",
"type": "boolean",
"description": "Prompt for privilege escalation password",
"required": false,
"default": null,
"choices": null,
"group": "become_auth",
"depends_on": "--become",
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Privilege Escalation",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Become Password File",
"flag": "--become-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the become/sudo password",
"required": false,
"default": null,
"choices": null,
"group": "become_auth",
"depends_on": "--become",
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Privilege Escalation",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Tags",
"flag": "--tags",
"short_flag": "-t",
"type": "string",
"description": "Only run plays and tasks tagged with these values (comma-separated, repeatable)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"deploy",
"configure",
"setup,install",
"always"
],
"display_group": "Task Selection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Skip Tags",
"flag": "--skip-tags",
"short_flag": null,
"type": "string",
"description": "Only run plays and tasks whose tags do not match these values (repeatable)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"slow_tests",
"cleanup",
"debug"
],
"display_group": "Task Selection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Start at Task",
"flag": "--start-at-task",
"short_flag": null,
"type": "string",
"description": "Start the playbook at the task matching this name",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Task Selection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Step",
"flag": "--step",
"short_flag": null,
"type": "boolean",
"description": "One-step-at-a-time: confirm each task before running",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Task Selection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "List Tasks",
"flag": "--list-tasks",
"short_flag": null,
"type": "boolean",
"description": "List all tasks that would be executed; does not run anything",
"required": false,
"default": null,
"choices": null,
"group": "dry_run_mode",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Task Selection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "List Tags",
"flag": "--list-tags",
"short_flag": null,
"type": "boolean",
"description": "List all available tags; does not run anything",
"required": false,
"default": null,
"choices": null,
"group": "dry_run_mode",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Task Selection",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Extra Variables",
"flag": "--extra-vars",
"short_flag": "-e",
"type": "string",
"description": "Set additional variables as key=value or YAML/JSON; prepend @ for file (repeatable)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"env=production",
"@vars.yml",
"{\"key\": \"value\"}",
"version=2.1.0 region=us-east-1"
],
"display_group": "Variables & Vault",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Variables & Vault",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the vault password or a script that outputs it",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Variables & Vault",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The vault identity to use (format: label@source, repeatable)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file",
"staging@~/.vault_pass"
],
"display_group": "Variables & Vault",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Check Mode",
"flag": "--check",
"short_flag": "-C",
"type": "boolean",
"description": "Dry run: predict changes without actually making them",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Diff",
"flag": "--diff",
"short_flag": "-D",
"type": "boolean",
"description": "Show differences in changed files and templates; works great with --check",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Forks",
"flag": "--forks",
"short_flag": "-f",
"type": "integer",
"description": "Number of parallel processes to use",
"required": false,
"default": 5,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": 1,
"max": 500,
"deprecated": null,
"dangerous": false
},
{
"name": "Force Handlers",
"flag": "--force-handlers",
"short_flag": null,
"type": "boolean",
"description": "Run handlers even if a task fails",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Syntax Check",
"flag": "--syntax-check",
"short_flag": null,
"type": "boolean",
"description": "Perform a syntax check on the playbook without executing it",
"required": false,
"default": null,
"choices": null,
"group": "dry_run_mode",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Module Path",
"flag": "--module-path",
"short_flag": "-M",
"type": "string",
"description": "Prepend colon-separated path(s) to module library (repeatable)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"./library",
"/usr/share/ansible/plugins/modules"
],
"display_group": "Execution Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Verbose",
"flag": "--verbose",
"short_flag": "-v",
"type": "boolean",
"description": "Increase output verbosity (-v to -vvvvvv; start at -vvv, connection debug at -vvvv)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": true,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Playbook",
"flag": "PLAYBOOK",
"short_flag": null,
"type": "file",
"description": "Path to the YAML playbook file to execute",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
}