-
Notifications
You must be signed in to change notification settings - Fork 660
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
args[module] flags variables violation #2866
Labels
Comments
In my case, I use the Default filter and expect the check to take the default value, but instead I get a warning. args[module]: value of scope must be one of: file, local, global, system, got: {{ item.scope | default("global") }} (warning) - name: 'Git config'
community.general.git_config:
name: '{{ item.name }}'
value: '{{ item.value }}'
scope: '{{ item.scope | default("global") }}'
repo: '{{ item.repo | default(None) }}'
loop: '{{ git_config_data }}' For the moment I skipped this check for this task with the |
This is a good point default values in the template could be checked and setting them is not a problem. |
klaus-tux
added a commit
to klaus-tux/ansible-lint
that referenced
this issue
Jan 23, 2023
ssbarnea
pushed a commit
that referenced
this issue
Jan 24, 2023
* Ignore args rule finding if value for choice has jinja template Fixes: #2866 * Add correctly failing example for value not in choice * make cspell happy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The args[module] flags variables violation
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Here one example:
The ansible-lint error:
Desired Behavior
Variable should be either ignored or the content of them should be parsed (but this is impossible in some cases).
In the current stay the only solution is to blacklist the test globally.
The text was updated successfully, but these errors were encountered: