Krikri::ArgspecValidator
Constants
The assemble-only options Ansible's action plugin consumes itself and never forwards to the copy module it delegates to when remote_src: is falsy (assemble.py action's clean-up loop).
ansible.module_utils.parsing.convert_bool.BOOLEANS_TRUE/FALSE's
string members - the choices a 'True'/'False' value can rewrite to
when exactly one of them appears in an option's choices list.
Python's True/False are members of those same sets (True == 1),
so a native-bool choice rendered as "True"/"False" (Python repr)
overlaps too - without them a bool-typed choices option like
docker_container's pull refuses a value real accepts.
convert_bool.py's BOOLEANS as Ansible's error message reprs them (a Python set iteration - order differs between module processes, so this fixed order is one Ansible emits; only the membership is stable).
Kept out of validation: engine-internal wire keys Ansible's module
never sees (real strips the ansible* namespace generically; the
others are krikri's own bookkeeping keys).
Package-manager modules package: use: can name (core + common community).
Instance methods
Whether this msg on this module is an argspec-validation failure we emitted (used by ResultDisplay to pick the right error-block chain shape - template's own file-not-found chain must not swallow these).
invocation.module_args of a module result: every spec option under
its canonical name, the provided (type-converted) value or its default
(null when none). nil for a module without a spec or an action-plugin
module whose result carries no invocation.
The declared type of one module option from the argspec table ("raw", "str", "list", ... - AnsibleModule's implicit default is str), or nil when the module or option is unknown to the table. Lets non-validation callers (the parser's mode-octal rescue) ask how the real module would interpret a value without duplicating the table.
Validates one module invocation's params against the real spec. action_name is the module spelling AS WRITTEN in the task (real prints that in the Unsupported-parameters message, except for the delegating action plugins with a fixed name); module_name is the resolved FQCN the table is keyed by. Returns nil when nothing fails (or the module has no spec to check against).