Check task arguments
ansible_check_task_argsValidate Ansible task arguments against installed module docs, catching unknown or missing options, bad types, choices, suboptions, and deprecated settings before writing plays.
Instructions
Check tasks (inline YAML, or a tasks file / playbook) against the INSTALLED module docs: unknown options, missing required ones, bad choices and types (YAML 1.1 aware: unquoted off/yes/0755), suboptions, deprecated options. ansible-doc cannot express cross-option rules (mutually_exclusive, required_if), so the answer says what it could not check; it catches action-plugin modules (copy, template) that ansible-lint's args rule skips.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Ansible project directory. Default: ANSIBLE_MCP_DIR, else the server's working directory. | |
| file | No | Tasks file, role tasks file or playbook, relative to dir | |
| line | No | Only the task whose span contains this line | |
| task | No | YAML: one task mapping, or a list of tasks |