-
Notifications
You must be signed in to change notification settings - Fork 29
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: "WARNING Unable to load module ... for options validation" #411
Labels
bug
Something isn't working
Comments
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 7, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 7, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 7, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 7, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
irozet12
pushed a commit
to irozet12/ansible-compat
that referenced
this issue
Oct 14, 2024
ssbarnea
added a commit
that referenced
this issue
Oct 17, 2024
* Re-init plugin loader after collections installation (#411) * Add plugin loader test (#411) * chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Ирина Розет <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sorin Sbarnea <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The issue is found with ansible-lint, but I suggest the fix in ansible-compat, that is why I report it here. Similar issue: #2861
ansible-lint installs required collections, and then can't load modules from them, the following warnings are printed:
When we run ansible-lint second time, when required collections are already installed, the warnings do not appear
Issue Type
OS / ENVIRONMENT
pip
pip
STEPS TO REPRODUCE
Run ansible-lint on a project which has a requirement for a collection and uses a module from the collection in a playbook. The required collection must not be installed on the node before running ansible-lint
For example, add cloud.terraform to requiremenmts.yml, and cloud.terraform.terraform module to a plybook in the project.
Playbook:
requirements.yml:
Run ansible-lint in the project directory.
Desired Behavior
Module cloud.terraform.terraform should be successfully loaded on the fist run
Actual Behavior
'Unable to load module' warnings appear
The text was updated successfully, but these errors were encountered: