WARNING Overriding detected file kind #1679
Unanswered
feuertaenzer
asked this question in
Q&A
Replies: 2 comments 2 replies
-
HI, This came from this code https://github.com/ansible-community/ansible-lint/blob/main/src/ansiblelint/config.py#L13-L33 |
Beta Was this translation helpful? Give feedback.
1 reply
-
to remove warning you can also specify that playbooks are ending with "yaml" in the ~/.ansible-lint file ~/.ansible-lint# vim: set ft=yaml:
---
kinds:
- playbook: "**/*.{yml,yaml}"
... source: ansible-lint.readthedocs.io/configuring |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
We recently noticed a bunch of warnings when running lint, regarding our playbooks:
WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: some.yml
We get this warning for every playbook in the top level directory(if that's the correct term).
I understand that the some.yml is initially detected as just a random yml-file and then correctly redetected as a playbook but
that step wasn't necessary before. The yml-files are located in the top level directory as usual(as far as I know that's the usual location). Roles and everything else are located in subfolders and are properly detected without warnings.
So far it doesn't cause any issues but still we'd like to fix it. For some reason it's super hard to find information on this. I found it mentioned in a few issues but it was pretty much always just ignored.
Does anyone know or have a guess what we have to do?
Beta Was this translation helpful? Give feedback.
All reactions