validate_argument_spec
Collection: builtin
Full Name: parallax.builtin.validate_argument_spec
Aliases: ansible.builtin.validate_argument_spec, validate_argument_spec
Synopsis
Validate supplied arguments against a role’s argument specification
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| argument_spec | map | yes | Ansible argument specification to validate against | |
| provided_arguments | map | Arguments to validate against the specification |
Example
- name: Validate the role's inputs
validate_argument_spec:
argument_spec: "{{ lookup('file', 'meta/argument_specs.yml') | from_yaml }}"