Files
scaffold/tools/ansible.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

891 lines
22 KiB
JSON

{
"_format": "scaffold_schema",
"tool": "Ansible (Ad-Hoc)",
"binary": "ansible",
"description": "Run a single task against a set of hosts without writing a playbook.",
"elevated": null,
"subcommands": null,
"_coverage": "full",
"arguments": [
{
"name": "Module Name",
"flag": "--module-name",
"short_flag": "-m",
"type": "string",
"description": "Name of the module to execute",
"required": false,
"default": "command",
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"ping",
"shell",
"copy",
"setup",
"apt",
"yum",
"systemd",
"user",
"file",
"command",
"debug"
],
"display_group": "Module",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Module Arguments",
"flag": "--args",
"short_flag": "-a",
"type": "string",
"description": "Module arguments as key=value pairs or JSON string",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"\"uptime\"",
"\"name=nginx state=present\"",
"\"src=/tmp/file dest=/tmp/file\"",
"\"filter=ansible_distribution*\""
],
"display_group": "Module",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"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",
"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",
"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"
],
"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": 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": "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"
],
"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"
],
"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",
"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\""
],
"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",
"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",
"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 escalation",
"required": false,
"default": "root",
"choices": null,
"group": null,
"depends_on": "--become",
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"root",
"postgres",
"nginx"
],
"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": "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\"}"
],
"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",
"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"
],
"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 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",
"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": "Background",
"flag": "--background",
"short_flag": "-B",
"type": "integer",
"description": "Run asynchronously, failing after this many seconds",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": 1,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Poll Interval",
"flag": "--poll",
"short_flag": "-P",
"type": "integer",
"description": "Poll interval for async tasks in seconds (use with -B)",
"required": false,
"default": 15,
"choices": null,
"group": null,
"depends_on": "--background",
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": 0,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Task Timeout",
"flag": "--task-timeout",
"short_flag": null,
"type": "integer",
"description": "Set task timeout limit in seconds (must be positive)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": 1,
"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": "Playbook Dir",
"flag": "--playbook-dir",
"short_flag": null,
"type": "directory",
"description": "Substitute playbook directory for relative paths (roles/, group_vars/, etc.)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Execution Options",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "One Line",
"flag": "--one-line",
"short_flag": "-o",
"type": "boolean",
"description": "Condense output to one line per host",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Output",
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Tree",
"flag": "--tree",
"short_flag": "-t",
"type": "directory",
"description": "Log output to this directory (one file per host)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": "Output",
"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": "Host Pattern",
"flag": "PATTERN",
"short_flag": null,
"type": "string",
"description": "Host pattern to target (group name, hostname, 'all', or pattern)",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"all",
"webservers",
"192.168.1.0/24",
"localhost"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
}