-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for argument_specs #1966
Labels
Comments
This is not a bug as you did not read well the documentation of arguments. Any given filename is assumed to be a playbook, overriding the file type detection. The linter does not give any errors when you allow it to detect the files (no arguments). Still, validating thew argument_specs is clearly something we want to add to it. |
ssbarnea
changed the title
argument_specs cause syntax-check violation
Support for argument_specs
Mar 18, 2022
ziegenberg
added a commit
to ziegenberg/ansible-lint
that referenced
this issue
May 1, 2022
…based on argument specification Beginning with ansible version 2.11 role argument validation based on an argument specification was introduced. This specification is defined in the meta/argument_specs.yml file of a role. This change enables the linter to detect this new format and for it to be used in future rules. Fixes: ansible#1688 Relates: ansible#1966 Signed-off-by: Daniel Ziegenberg <[email protected]>
ziegenberg
added a commit
to ziegenberg/ansible-lint
that referenced
this issue
May 1, 2022
…based on argument specification Beginning with ansible version 2.11 role argument validation based on an argument specification was introduced. This specification is defined in the meta/argument_specs.yml file of a role. This change enables the linter to detect this new format and for it to be used in future rules. Fixes: ansible#1688 Relates: ansible#1966 Signed-off-by: Daniel Ziegenberg <[email protected]>
ssbarnea
pushed a commit
that referenced
this issue
May 3, 2022
Beginning with ansible version 2.11 role argument validation based on an argument specification was introduced. This specification is defined in the meta/argument_specs.yml file of a role. This change enables the linter to detect this new format and for it to be used in future rules. Fixes: #1688 Relates: #1966 Signed-off-by: Daniel Ziegenberg <[email protected]>
ssbarnea
added a commit
to ssbarnea/schemas
that referenced
this issue
May 13, 2022
ssbarnea
added a commit
to ansible/schemas
that referenced
this issue
May 13, 2022
ssbarnea
added a commit
to ssbarnea/ansible-lint
that referenced
this issue
May 13, 2022
ssbarnea
added a commit
that referenced
this issue
May 13, 2022
Repository owner
moved this from Todo
to Done (AAP 2.2)
in 🧰 devtools project board
May 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The ansible documentation states:
Beginning with version 2.11, you may choose to enable role argument validation based on an argument specification. This specification is defined in the meta/argument_specs.yml file […]
See: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#role-argument-validation
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Linux 5.15.25-1-MANJARO #1 SMP PREEMPT Wed Feb 23 14:44:03 UTC 2022
STEPS TO REPRODUCE
meta
folderargument_specs.yml
in itargument_specs
block, as the documentation showsDesired Behavior
Ansible lint should either handle this file in an appropriate way or at least ignore it.
Actual Behavior
Result is a syntax-check violation:
The text was updated successfully, but these errors were encountered: