Replies: 3 comments 4 replies
-
I didn't vote (yet) because I want to clarify some things, but I think I support this proposal. I don't want to remove any detail in the original post because it's good context, but it would be helpful (for me at least) to also add a short summary of the different possible behaviors, for example:
etc., that's just a short example, but I would like a way to determine what behaviors happen when, as I struggle with it a bit even now. A flow chart would be wonderful but text form is fine too. |
Beta Was this translation helpful? Give feedback.
-
@ssbarnea It would be helpful also to understand what aspects of I tend to fall into the camp that does configure |
Beta Was this translation helpful? Give feedback.
-
I don't think I really understand what you are talking about... but at the spur of the moment, I'd say that |
Beta Was this translation helpful? Give feedback.
-
As the isolation feature from ansible-lint proved to be a permanent source of confusion for its users I would like to propose its removal.
The main reason for the confusion is that what ansible-lint is seeing as being installed/available is not the same thing as what ansible itself does. Basically, ansible called by ansible-lint behaves differently than calling ansible directly.
While this was done by altering collections and role paths in a way that prevents accidental installation (or override) of ansible collections and roles as the user level (
~/.ansible
).I think we have a better way of doing this that does not involve the problematic injectstion of
~/.cache/ansible-compat/{checksum}
path to ansible include paths.We can make ansible lint detect if the 1st inclusion path is inside current project directory and avoid performing any installations there and display a warning, telling user that if he wants to auto-install test dependencies they need to create an
ansible.cfg
find inside current project that tells Ansible to user in-repo locations for collections and roles, like below:If we stop using the isolated cache, we can ensure that running
ansible-galaxy collection list
will display the exact list of collections that also ansible-lint finds and uses.One downside of dropping the cache is that we might fail to detect some content dependencies that were already installed at user level but user forgot to add them on their
test-requirements.yml
file. Still, in future versions we might add a feature to note use of any content module that is not listed inside these requirements and notify the user, so the limitation would only time limited. The fact the linter also runs on CI/CD pipelines makes is unlikely to miss that.PS. Please note that there is no expectated change related to use of "offline" more.
10 votes ·
Beta Was this translation helpful? Give feedback.
All reactions