You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run ansible-lint and get an error, you also get helpful output how to ignore said error:
You can skip specific rules or tags by adding them to your configuration file:
# .config/ansible-lint.yml
warn_list: # or 'skip_list' to silence them completely
- fqcn-builtins # Use FQCN for builtin actions.
However, adding this exactly like that to the config doesn't work.
warn_list:
- fqcn-builtins # Use FQCN for builtin actions.
This discussion was converted from issue #2046 on May 17, 2022 18:23.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
When you run
ansible-lint
and get an error, you also get helpful output how to ignore said error:However, adding this exactly like that to the config doesn't work.
Removing the comment fixes the issue:
The same is true for the docs at https://ansible-lint.readthedocs.io/en/latest/configuring/ -- they contain inline comments, which
ansible-lint
doesn't seem to like.Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Fedora, but should be irrelevant
STEPS TO REPRODUCE
See above.
Desired Behavior
Users can copy paste from docs.
Actual Behavior
Users get invalid configurations
Beta Was this translation helpful? Give feedback.
All reactions