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
Ansible-lint not resolve properly collections from meta/main.yml role file #1122
Comments
There is very long list of bugs, but unless someone propose PR, they may end-up lingering here. We need PRs now more than anything else. |
Is this related to #538? There's a proposed fix in #1046, does that fix work for you @Eugen1987? |
Thank you very much for answering so quickly. It is partially related to #538. But in my case the error only occurs when I indicate the collection in the meta/main.yml file. If I indicate the collection in the name of the module everything works correctly. The solution proposed in #1046 seems very interesting to me because it is not necessary to check whether the modules belonging to the collections are valid or not. Thank you. |
For me with 4.3.7
My ansible.cfg contains
and collections are managed by me, not the Maybe this is a separate issue, especially since adding the full FQCN into the task doesn't fix it. Where should I best start looking for clues/issues around this, so I can propose a fix? I guess you know the code base and some gotchas better than me... |
My current suspicion is #1074 and especially this line: |
Summary
We have a playbook that import a role called: azure-sql. The role is very simple and have one task:
In that role we have a main.yml meta file with collection we want to use.
when we launch the playbook all work ok. When we launch ansible-lint, it fails with the following error:
If we add azure.azcollection to the module name like this:
ansible-lint work fine.
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Darwin topi 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
STEPS TO REPRODUCE
create a playbook called test with the following content:
create a role called azure-sql with the following content:
In that role in meta/main.yml file set the collection of wich the module azure_rm_keyvaultsecret_info belong.
Desired Behaviour
When we launch ansible-lint it must pass.
Actual Behaviour
When we launch ansible-lint, it fails with the following error:
The text was updated successfully, but these errors were encountered: